WordPress at Your Fingertips
function is not described

ActionScheduler_DataController::init() public WC 1.0

Connect to table datastores if migration is complete. Otherwise, proceed with the migration if the dependencies have been met.

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

No Hooks.

Return

null. Nothing.

Usage

$result = ActionScheduler_DataController::init();

Code of ActionScheduler_DataController::init() WC 6.1.1

public static function init() {
	if ( self::is_migration_complete() ) {
		add_filter( 'action_scheduler_store_class', array( 'ActionScheduler_DataController', 'set_store_class' ), 100 );
		add_filter( 'action_scheduler_logger_class', array( 'ActionScheduler_DataController', 'set_logger_class' ), 100 );
		add_action( 'deactivate_plugin', array( 'ActionScheduler_DataController', 'mark_migration_incomplete' ) );
	} elseif ( self::dependencies_met() ) {
		Controller::init();
	}

	add_action( 'action_scheduler/progress_tick', array( 'ActionScheduler_DataController', 'maybe_free_memory' ) );
}