WordPress at Your Fingertips
function is not described

Action_Scheduler\Migration

Controller::allow_migration() public WC 1.0

Allow datastores to enable migration to AS tables.

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

Hooks from the method

Return

null. Nothing.

Usage

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

Code of Controller::allow_migration() WC 6.1.1

public function allow_migration() {
	if ( ! \ActionScheduler_DataController::dependencies_met() ) {
		return false;
	}

	if ( null === $this->migrate_custom_store ) {
		$this->migrate_custom_store = apply_filters( 'action_scheduler_migrate_data_store', false );
	}

	return ( ! $this->has_custom_datastore() ) || $this->migrate_custom_store;
}