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

translators: %s is the action ID

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

add_action( 'action_scheduler_deleted_action', 'wp_kama_action_scheduler_deleted_action' );

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

	// action...
}
$action_id
-

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

ActionScheduler_wpPostStore::delete_action()
action_scheduler_deleted_action
ActionScheduler_DBStore::delete_action()
action_scheduler_deleted_action
woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore.php 536
do_action( 'action_scheduler_deleted_action', $action_id );
woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php 545
do_action( 'action_scheduler_deleted_action', $action_id );

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

woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_DBLogger.php 112
add_action( 'action_scheduler_deleted_action', array( $this, 'clear_deleted_action_logs' ), 10, 1 );