WordPress at Your Fingertips
function is not described

Action_Scheduler\Migration

Controller::maybe_hook_migration() public WC 1.0

Possibly hook the migration scheduler action.

{} It's a method of the class: Controller{}

No Hooks.

Return

null. Nothing.

Usage

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

Code of Controller::maybe_hook_migration() WC 6.1.1

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

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