Status Change Jobs
How to start job for “Pending Payment” status
You must add following PHP code to functions.php
1 2 3 |
add_action( 'woocommerce_checkout_order_processed', function($order_id, $posted_data, $order ){ do_action("woocommerce_order_status_changed",$order_id,"","wc-pending"); },10,3); |