skip to Main Content

WordPress Hook for only order processing

I am making a WordPress plugin, where I need to make an API call every time order status updates to "processing" from "pending". function __construct(){ add_action( 'woocommerce_after_order_object_save', [$this,'action_woocommerce_doba_order_import'], 10, 1 ); } public function action_woocommerce_doba_order_import($order){ if ( 'processing' === $order->get_status()…

VIEW QUESTION
Back To Top
Search