Last active
March 15, 2021 13:12
-
-
Save iyut/1855de5bb8f3c0c2bf59d81e6b6b34ea to your computer and use it in GitHub Desktop.
Woocommerce Hook After Order is created
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'woocommerce_new_order', 'order_is_created', 10, 1 ); | |
function order_is_created( $order_id ){ | |
$order = wc_get_order( $order_id ); | |
if( !$order ){ | |
return; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment