Last active
August 29, 2015 14:28
-
-
Save wisecrab/34c109985d92840380e3 to your computer and use it in GitHub Desktop.
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
| /* | |
| *** Order Status Options *** | |
| >> woocommerce_order_status_pending | |
| >> woocommerce_order_status_failed | |
| >> woocommerce_order_status_on-hold | |
| >> woocommerce_order_status_processing | |
| >> woocommerce_order_status_completed | |
| >> woocommerce_order_status_refunded | |
| >> woocommerce_order_status_cancelled | |
| */ | |
| function site_name_order_complete( $order_id ) { | |
| error_log( 'Order #' . $order_id ' is complete and has shipped out to the customer.' , 0 ); | |
| } | |
| add_action( 'woocommerce_order_status_completed', 'site_name_order_complete' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment