action_scheduler/migration_batch_starting action-hookWC 1.0

Migration a batch of actions.

Usage

add_action( 'action_scheduler/migration_batch_starting', 'wp_kama_action_scheduler_migration_batch_starting_action' );

/**
 * Function for `action_scheduler/migration_batch_starting` action-hook.
 * 
 * @param array $action_ids List of action IDs to migrate.
 *
 * @return void
 */
function wp_kama_action_scheduler_migration_batch_starting_action( $action_ids ){

	// action...
}
$action_ids(array)
List of action IDs to migrate.

Where the hook is called

Runner::migrate_actions()
action_scheduler/migration_batch_starting
woocommerce/packages/action-scheduler/classes/migration/Runner.php 97
do_action( 'action_scheduler/migration_batch_starting', $action_ids );

Where the hook is used in WooCommerce

woocommerce/packages/action-scheduler/classes/WP_CLI/Migration_Command.php 141
add_action( 'action_scheduler/migration_batch_starting', function ( $batch ) {