WordPress at Your Fingertips
action is not described

woocommerce_order_status_(to) action-hook . WC 1.0

Usage

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

Where the hook is called

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

Where in WP core the hook is used WooCommerce

woocommerce/includes/emails/class-wc-email-cancelled-order.php 42
add_action( 'woocommerce_order_status_processing_to_cancelled_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/emails/class-wc-email-cancelled-order.php 43
add_action( 'woocommerce_order_status_on-hold_to_cancelled_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/emails/class-wc-email-customer-completed-order.php 42
add_action( 'woocommerce_order_status_completed_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/emails/class-wc-email-customer-on-hold-order.php 42
add_action( 'woocommerce_order_status_pending_to_on-hold_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/emails/class-wc-email-customer-on-hold-order.php 43
add_action( 'woocommerce_order_status_failed_to_on-hold_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/emails/class-wc-email-customer-on-hold-order.php 44
add_action( 'woocommerce_order_status_cancelled_to_on-hold_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/emails/class-wc-email-customer-processing-order.php 43
add_action( 'woocommerce_order_status_cancelled_to_processing_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/emails/class-wc-email-customer-processing-order.php 44
add_action( 'woocommerce_order_status_failed_to_processing_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/emails/class-wc-email-customer-processing-order.php 45
add_action( 'woocommerce_order_status_on-hold_to_processing_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/emails/class-wc-email-customer-processing-order.php 46
add_action( 'woocommerce_order_status_pending_to_processing_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/emails/class-wc-email-failed-order.php 41
add_action( 'woocommerce_order_status_pending_to_failed_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/emails/class-wc-email-failed-order.php 42
add_action( 'woocommerce_order_status_on-hold_to_failed_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/emails/class-wc-email-new-order.php 41
add_action( 'woocommerce_order_status_pending_to_processing_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/emails/class-wc-email-new-order.php 42
add_action( 'woocommerce_order_status_pending_to_completed_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/emails/class-wc-email-new-order.php 43
add_action( 'woocommerce_order_status_pending_to_on-hold_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/emails/class-wc-email-new-order.php 44
add_action( 'woocommerce_order_status_failed_to_processing_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/emails/class-wc-email-new-order.php 45
add_action( 'woocommerce_order_status_failed_to_completed_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/emails/class-wc-email-new-order.php 46
add_action( 'woocommerce_order_status_failed_to_on-hold_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/emails/class-wc-email-new-order.php 47
add_action( 'woocommerce_order_status_cancelled_to_processing_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/emails/class-wc-email-new-order.php 48
add_action( 'woocommerce_order_status_cancelled_to_completed_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/emails/class-wc-email-new-order.php 49
add_action( 'woocommerce_order_status_cancelled_to_on-hold_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php 75
add_action( 'woocommerce_order_status_completed', array( $this, 'capture_payment' ) );
woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php 74
add_action( 'woocommerce_order_status_processing', array( $this, 'capture_payment' ) );
woocommerce/includes/tracks/events/class-wc-orders-tracking.php 18
add_action( 'woocommerce_order_status_changed', array( $this, 'track_order_status_change' ), 10, 3 );
woocommerce/includes/wc-order-functions.php 906
add_action( 'woocommerce_order_status_pending', 'wc_update_coupon_usage_counts' );
woocommerce/includes/wc-order-functions.php 910
add_action( 'woocommerce_order_status_cancelled', 'wc_update_coupon_usage_counts' );
woocommerce/includes/wc-order-functions.php 908
add_action( 'woocommerce_order_status_processing', 'wc_update_coupon_usage_counts' );
woocommerce/includes/wc-order-functions.php 907
add_action( 'woocommerce_order_status_completed', 'wc_update_coupon_usage_counts' );
woocommerce/includes/wc-order-functions.php 909
add_action( 'woocommerce_order_status_on-hold', 'wc_update_coupon_usage_counts' );
woocommerce/includes/wc-order-functions.php 851
add_action( 'woocommerce_order_status_on-hold', 'wc_update_total_sales_counts' );
woocommerce/includes/wc-order-functions.php 850
add_action( 'woocommerce_order_status_processing', 'wc_update_total_sales_counts' );
woocommerce/includes/wc-order-functions.php 849
add_action( 'woocommerce_order_status_completed', 'wc_update_total_sales_counts' );
woocommerce/includes/wc-order-functions.php 802
add_action( 'woocommerce_order_status_refunded', 'wc_order_fully_refunded' );
woocommerce/includes/wc-order-functions.php 434
add_action( 'woocommerce_order_status_processing', 'wc_downloadable_product_permissions' );
woocommerce/includes/wc-order-functions.php 433
add_action( 'woocommerce_order_status_completed', 'wc_downloadable_product_permissions' );
woocommerce/includes/wc-stock-functions.php 113
add_action( 'woocommerce_order_status_completed', 'wc_maybe_reduce_stock_levels' );
woocommerce/includes/wc-stock-functions.php 114
add_action( 'woocommerce_order_status_processing', 'wc_maybe_reduce_stock_levels' );
woocommerce/includes/wc-stock-functions.php 115
add_action( 'woocommerce_order_status_on-hold', 'wc_maybe_reduce_stock_levels' );
woocommerce/includes/wc-stock-functions.php 143
add_action( 'woocommerce_order_status_cancelled', 'wc_maybe_increase_stock_levels' );
woocommerce/includes/wc-stock-functions.php 144
add_action( 'woocommerce_order_status_pending', 'wc_maybe_increase_stock_levels' );
woocommerce/includes/wc-stock-functions.php 385
add_action( 'woocommerce_order_status_cancelled', 'wc_release_stock_for_order', 11 );
woocommerce/includes/wc-stock-functions.php 386
add_action( 'woocommerce_order_status_completed', 'wc_release_stock_for_order', 11 );
woocommerce/includes/wc-stock-functions.php 387
add_action( 'woocommerce_order_status_processing', 'wc_release_stock_for_order', 11 );
woocommerce/includes/wc-stock-functions.php 388
add_action( 'woocommerce_order_status_on-hold', 'wc_release_stock_for_order', 11 );
woocommerce/includes/wc-user-functions.php 300
add_action( 'woocommerce_order_status_completed', 'wc_paying_customer' );