Have you tried using this hook? add_action( ' woocommerce_order_status_processing', array( $this, ' yourfunction_order_processing') );.
... function order_hold($order_id) { // Do your logic here } // Order status - ` processing` add_action( 'woocommerce_order_status_processing', ...
This hook will be executed every time there's a statu change. What you can do is to decide if you want to execute the code in the front or in the ...
Hi There, I have a child theme and need to make start an action when an order is set to “processing”. It seems the action does not fire correctly.
Okay, writing things down helps in getting it clear... I had the mentioned code in a piece of code that was triggered only for admin :-) Thanks to ...
Like I said before change manually the data through admin works well with the woocommerce_order_status_processing hook. But the gateway I'm using was ...
The WordPress Core woocommerce order status processing hook. Description. add_action( 'woocommerce_order_status_processing', (string) $ ...
Hello. I have a webhook configured with the hook woocommerce_order_status_processing. Two weeks ago I updated the stripe gateway plugin to its latest ...
add_action( 'woocommerce_order_status_processing', 'mysite_processing', 10, 1 ); add_action( 'woocommerce_order_status_completed', 'mysite_completed', 10, ...
add_action('woocommerce_order_status_processing', ' wpo_wcpdf_create_invoice_number'); function wpo_wcpdf_create_invoice_number ( $order_id ) ...