action_scheduler/migration_batch_starting
Migration a batch of actions.
Использование
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(массив)
- List of action IDs to migrate.
Где вызывается хук
action_scheduler/migration_batch_starting
woocommerce/packages/action-scheduler/classes/migration/Runner.php 97
do_action( 'action_scheduler/migration_batch_starting', $action_ids );
Где используется хук в WooCommerce
woocommerce/packages/action-scheduler/classes/WP_CLI/Migration_Command.php 141
add_action( 'action_scheduler/migration_batch_starting', function ( $batch ) {