Action_Scheduler\Migration
Controller::maybe_hook_migration
Possibly hook the migration scheduler action.
Method of the class: Controller{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Controller = new Controller(); $Controller->maybe_hook_migration();
Controller::maybe_hook_migration() Controller::maybe hook migration code WC 10.5.0
public function maybe_hook_migration() {
if ( ! $this->allow_migration() || \ActionScheduler_DataController::is_migration_complete() ) {
return;
}
$this->migration_scheduler->hook();
}