Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

woocommerce order status change

$order = wc_get_order( $order_id );

if($order){
   $order->update_status( 'pending', '', true );
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #woocommerce #order #status #change
ADD COMMENT
Topic
Name
7+2 =