Action_Scheduler\Migration

Controller::maybe_hook_migration()publicWC 1.0

Possibly hook the migration scheduler action.

Method of the class: Controller{}

No Hooks.

Return

null. Nothing.

Usage

$Controller = new Controller();
$Controller->maybe_hook_migration();

Controller::maybe_hook_migration() code WC 7.3.0

public function maybe_hook_migration() {
	if ( ! $this->allow_migration() || \ActionScheduler_DataController::is_migration_complete() ) {
		return;
	}

	$this->migration_scheduler->hook();
}