action_scheduler/migrate_action_dry_run хук-событиеWC 1.0

Simulate migrating an action.

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

add_action( 'action_scheduler/migrate_action_dry_run', 'wp_kama_action_scheduler_migrate_dry_run_action' );

/**
 * Function for `action_scheduler/migrate_action_dry_run` action-hook.
 * 
 * @param int $source_action_id Action ID.
 *
 * @return void
 */
function wp_kama_action_scheduler_migrate_dry_run_action( $source_action_id ){

	// action...
}
$source_action_id(int)
Action ID.

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

DryRun_ActionMigrator::migrate()
action_scheduler/migrate_action_dry_run
woocommerce/packages/action-scheduler/classes/migration/DryRun_ActionMigrator.php 24
do_action( 'action_scheduler/migrate_action_dry_run', $source_action_id );

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

woocommerce/packages/action-scheduler/classes/WP_CLI/Migration_Command.php 126
add_action( 'action_scheduler/migrate_action_dry_run', function ( $action_id ) {