Action_Scheduler\Migration

DryRun_ActionMigrator{}WC 3.0.0

Class DryRun_ActionMigrator

Хуки из класса

Использование

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

Методы

  1. public migrate( $source_action_id )

Заметки

  • Пакет: Action_Scheduler\Migration

Список изменений

С версии 3.0.0 Введена.

Код DryRun_ActionMigrator{} WC 6.9.4

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;
	}
}