woocommerce update_status () электронная почта


// Change order status
wp_update_post(['ID' => $value->post_id, 'post_status' => 'wc-'.$wooOrderStatus]);
Gifted Gannet