woocommerce_order_edit_status хук-событиеWC 1.0

Использование

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
-

Где вызывается хук

ListTable::do_bulk_action_mark_orders()
woocommerce_order_edit_status
WC_Admin_List_Table_Orders::handle_bulk_actions()
woocommerce_order_edit_status
WC_Order::set_status()
woocommerce_order_edit_status
WC_AJAX::mark_order_status()
woocommerce_order_edit_status
woocommerce/src/Internal/Admin/Orders/ListTable.php 1232
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-order.php 289
do_action( 'woocommerce_order_edit_status', $this->get_id(), $result['to'] );
woocommerce/includes/class-wc-ajax.php 547
do_action( 'woocommerce_order_edit_status', $order->get_id(), $status );

Где используется хук в WooCommerce

Использование не найдено.