action_scheduler/migrated_action
Usage
add_action( 'action_scheduler/migrated_action', 'wp_kama_action_scheduler_migrated_action', 10, 4 ); /** * Function for `action_scheduler/migrated_action` action-hook. * * @param $source_action_id * @param $destination_action_id * @param $source * @param $destination * * @return void */ function wp_kama_action_scheduler_migrated_action( $source_action_id, $destination_action_id, $source, $destination ){ // action... }
- $source_action_id
- -
- $destination_action_id
- -
- $source
- -
- $destination
- -
Where the hook is called
action_scheduler/migrated_action
woocommerce/packages/action-scheduler/classes/migration/ActionMigrator.php 99
do_action( 'action_scheduler/migrated_action', $source_action_id, $destination_action_id, $this->source, $this->destination );
woocommerce/packages/action-scheduler/classes/migration/ActionMigrator.php 106
do_action( 'action_scheduler/migrated_action', $source_action_id, $destination_action_id, $this->source, $this->destination );
Where the hook is used in WooCommerce
woocommerce/packages/action-scheduler/classes/WP_CLI/Migration_Command.php 138
add_action( 'action_scheduler/migrated_action', function ( $source_id, $destination_id ) {