woocommerce_order_edit_status
Usage
add_action( 'woocommerce_order_edit_status', 'wp_kama_woocommerce_order_edit_status_action', 10, 2 ); /** * Function for `woocommerce_order_edit_status` action-hook. * * @param $id * @param $new_status * * @return void */ function wp_kama_woocommerce_order_edit_status_action( $id, $new_status ){ // action... }
- $id
- -
- $new_status
- -
Where the hook is called
woocommerce_order_edit_status
woocommerce_order_edit_status
woocommerce_order_edit_status
woocommerce/src/Internal/Admin/Orders/ListTable.php 1401
do_action( 'woocommerce_order_edit_status', $id, $new_status ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment
woocommerce/includes/admin/list-tables/class-wc-admin-list-table-orders.php 478
do_action( 'woocommerce_order_edit_status', $id, $new_status );
woocommerce/includes/class-wc-ajax.php 586
do_action( 'woocommerce_order_edit_status', $order->get_id(), $status );
woocommerce/includes/class-wc-order.php 297
do_action( 'woocommerce_order_edit_status', $this->get_id(), $result['to'] );