WordPress at a glance
class is not described

Action_Scheduler\Migration

DryRun_ActionMigrator{} WC 3.0.0

Class DryRun_ActionMigrator

Return

null. Nothing.

Usage

$DryRun_ActionMigrator = new DryRun_ActionMigrator();
// use class methods

Methods

  1. migrate( $source_action_id )

Notes

  • Package: Action_Scheduler\Migration

Changelog

Since 3.0.0 Introduced.

Code of DryRun_ActionMigrator{} WC 5.3.0

<?php
class DryRun_ActionMigrator extends ActionMigrator {
	/**
	 * Simulate migrating an action.
	 *
	 * @param int $source_action_id Action ID.
	 *
	 * @return int
	 */
	public function migrate( $source_action_id ) {
		do_action( 'action_scheduler/migrate_action_dry_run', $source_action_id );

		return 0;
	}
}