Changing Order status after creating a packing slip
-
Hi,
I found this action in some other forum post and like to use it with packing slip.
Two questions:
Is it possible to use the order id inside my custom function?
And how to decide which doc type is used?add_action( 'wpo_wcpdf_created_manually', 'change_to_working_status'); function change_to_working_status() { global $order_id; if ( ! $order_id ) return; $order = wc_get_order( $order_id ); if( $order->has_status( 'processing' ) ) { $order->update_status( 'working' ); } }
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Changing Order status after creating a packing slip’ is closed to new replies.