WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
событие не описано

woocommerce_order_status_(to) хук-событие . WC 1.0

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

add_action( 'woocommerce_order_status_(to)', 'action_function_name_8149', 10, 2 );
function action_function_name_8149( $id, $that ){
	// action...
}
$id
-
$that
-

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

WC_Order::status_transition()
woocommerce_order_status_(to)
woocommerce/includes/class-wc-order.php 363
do_action( 'woocommerce_order_status_' . $status_transition['to'], $this->get_id(), $this );

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

woocommerce/includes/class-wc-order.php 42
add_action( 'woocommerce_order_status_processing_to_cancelled_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/class-wc-order.php 43
add_action( 'woocommerce_order_status_on-hold_to_cancelled_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/class-wc-order.php 42
add_action( 'woocommerce_order_status_completed_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/class-wc-order.php 42
add_action( 'woocommerce_order_status_pending_to_on-hold_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/class-wc-order.php 43
add_action( 'woocommerce_order_status_failed_to_on-hold_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/class-wc-order.php 44
add_action( 'woocommerce_order_status_cancelled_to_on-hold_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/class-wc-order.php 43
add_action( 'woocommerce_order_status_cancelled_to_processing_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/class-wc-order.php 44
add_action( 'woocommerce_order_status_failed_to_processing_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/class-wc-order.php 45
add_action( 'woocommerce_order_status_on-hold_to_processing_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/class-wc-order.php 46
add_action( 'woocommerce_order_status_pending_to_processing_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/class-wc-order.php 42
add_action( 'woocommerce_order_status_on-hold_to_failed_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/class-wc-order.php 41
add_action( 'woocommerce_order_status_pending_to_failed_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/class-wc-order.php 41
add_action( 'woocommerce_order_status_pending_to_processing_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/class-wc-order.php 42
add_action( 'woocommerce_order_status_pending_to_completed_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/class-wc-order.php 43
add_action( 'woocommerce_order_status_pending_to_on-hold_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/class-wc-order.php 44
add_action( 'woocommerce_order_status_failed_to_processing_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/class-wc-order.php 45
add_action( 'woocommerce_order_status_failed_to_completed_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/class-wc-order.php 46
add_action( 'woocommerce_order_status_failed_to_on-hold_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/class-wc-order.php 47
add_action( 'woocommerce_order_status_cancelled_to_processing_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/class-wc-order.php 48
add_action( 'woocommerce_order_status_cancelled_to_completed_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/class-wc-order.php 49
add_action( 'woocommerce_order_status_cancelled_to_on-hold_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/class-wc-order.php 74
add_action( 'woocommerce_order_status_processing', array( $this, 'capture_payment' ) );
woocommerce/includes/class-wc-order.php 75
add_action( 'woocommerce_order_status_completed', array( $this, 'capture_payment' ) );
woocommerce/includes/class-wc-order.php 18
add_action( 'woocommerce_order_status_changed', array( $this, 'track_order_status_change' ), 10, 3 );
woocommerce/includes/class-wc-order.php 432
add_action( 'woocommerce_order_status_completed', 'wc_downloadable_product_permissions' );
woocommerce/includes/class-wc-order.php 794
add_action( 'woocommerce_order_status_refunded', 'wc_order_fully_refunded' );
woocommerce/includes/class-wc-order.php 841
add_action( 'woocommerce_order_status_completed', 'wc_update_total_sales_counts' );
woocommerce/includes/class-wc-order.php 842
add_action( 'woocommerce_order_status_processing', 'wc_update_total_sales_counts' );
woocommerce/includes/class-wc-order.php 843
add_action( 'woocommerce_order_status_on-hold', 'wc_update_total_sales_counts' );
woocommerce/includes/class-wc-order.php 898
add_action( 'woocommerce_order_status_pending', 'wc_update_coupon_usage_counts' );
woocommerce/includes/class-wc-order.php 899
add_action( 'woocommerce_order_status_completed', 'wc_update_coupon_usage_counts' );
woocommerce/includes/class-wc-order.php 900
add_action( 'woocommerce_order_status_processing', 'wc_update_coupon_usage_counts' );
woocommerce/includes/class-wc-order.php 901
add_action( 'woocommerce_order_status_on-hold', 'wc_update_coupon_usage_counts' );
woocommerce/includes/class-wc-order.php 902
add_action( 'woocommerce_order_status_cancelled', 'wc_update_coupon_usage_counts' );
woocommerce/includes/class-wc-order.php 433
add_action( 'woocommerce_order_status_processing', 'wc_downloadable_product_permissions' );
woocommerce/includes/class-wc-order.php 378
add_action( 'woocommerce_order_status_cancelled', 'wc_release_stock_for_order', 11 );
woocommerce/includes/class-wc-order.php 381
add_action( 'woocommerce_order_status_on-hold', 'wc_release_stock_for_order', 11 );
woocommerce/includes/class-wc-order.php 380
add_action( 'woocommerce_order_status_processing', 'wc_release_stock_for_order', 11 );
woocommerce/includes/class-wc-order.php 379
add_action( 'woocommerce_order_status_completed', 'wc_release_stock_for_order', 11 );
woocommerce/includes/class-wc-order.php 106
add_action( 'woocommerce_order_status_completed', 'wc_maybe_reduce_stock_levels' );
woocommerce/includes/class-wc-order.php 137
add_action( 'woocommerce_order_status_pending', 'wc_maybe_increase_stock_levels' );
woocommerce/includes/class-wc-order.php 136
add_action( 'woocommerce_order_status_cancelled', 'wc_maybe_increase_stock_levels' );
woocommerce/includes/class-wc-order.php 108
add_action( 'woocommerce_order_status_on-hold', 'wc_maybe_reduce_stock_levels' );
woocommerce/includes/class-wc-order.php 107
add_action( 'woocommerce_order_status_processing', 'wc_maybe_reduce_stock_levels' );
woocommerce/includes/class-wc-order.php 910
remove_action( 'woocommerce_order_status_refunded', array( 'WC_Emails', 'send_transactional_email' ) );
woocommerce/includes/class-wc-order.php 299
add_action( 'woocommerce_order_status_completed', 'wc_paying_customer' );