ActionScheduler_DataController::init()
Connect to table datastores if migration is complete. Otherwise, proceed with the migration if the dependencies have been met.
Method of the class: ActionScheduler_DataController{}
No Hooks.
Return
null
. Nothing (null).
Usage
$result = ActionScheduler_DataController::init();
ActionScheduler_DataController::init() ActionScheduler DataController::init code WC 9.5.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' ) ); }