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

translators: %s is the action ID

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

add_action( 'action_scheduler_canceled_action', 'wp_kama_action_scheduler_canceled_action' );

/**
 * Function for `action_scheduler_canceled_action` action-hook.
 * 
 * @param  $action_id 
 *
 * @return void
 */
function wp_kama_action_scheduler_canceled_action( $action_id ){

	// action...
}
$action_id
-

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

ActionScheduler_wpPostStore::cancel_action()
action_scheduler_canceled_action
ActionScheduler_DBStore::cancel_action()
action_scheduler_canceled_action
woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore.php 517
do_action( 'action_scheduler_canceled_action', $action_id );
woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php 453
do_action( 'action_scheduler_canceled_action', $action_id );

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

woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler_Logger.php 50
add_action( 'action_scheduler_canceled_action', array( $this, 'log_canceled_action' ), 10, 1 );