action_scheduler/migrated_action

action_scheduler/migrated_action

Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.6.6.1

do_action('action_scheduler/migrated_action') is found 2 times:

  • /packages/action-scheduler/classes/migration/ActionMigrator.php line 97
    			$test_action = $this->source->fetch_action( $source_action_id );
    			if ( ! is_a( $test_action, 'ActionScheduler_NullAction' ) ) {
    				throw new \RuntimeException( sprintf( __( 'Unable to remove source migrated action %s', 'woocommerce' ), $source_action_id ) );
    			}
    			do_action( 'action_scheduler/migrated_action', $source_action_id, $destination_action_id, $this->source, $this->destination );
    
    			return $destination_action_id;
    		} catch ( \Exception $e ) {
    			// could not delete from the old store
    			$this->source->mark_migrated( $source_action_id );
    			do_action( 'action_scheduler/migrate_action_incomplete', $source_action_id, $destination_action_id, $this->source, $this->destination );
    
  • /packages/action-scheduler/classes/migration/ActionMigrator.php line 104
    		} catch ( \Exception $e ) {
    			// could not delete from the old store
    			$this->source->mark_migrated( $source_action_id );
    			do_action( 'action_scheduler/migrate_action_incomplete', $source_action_id, $destination_action_id, $this->source, $this->destination );
    			do_action( 'action_scheduler/migrated_action', $source_action_id, $destination_action_id, $this->source, $this->destination );
    
    			return $destination_action_id;
    		}
    	}
    }