Action_Scheduler\Migration

Controller::hook()privateWC 1.0

Add store classes. Hook migration.

Метод класса: Controller{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

// private - только в коде основоного (родительского) класса
$result = $this->hook();

Код Controller::hook() WC 8.7.0

private function hook() {
	add_filter( 'action_scheduler_store_class', array( $this, 'get_store_class' ), 100, 1 );
	add_filter( 'action_scheduler_logger_class', array( $this, 'get_logger_class' ), 100, 1 );
	add_action( 'init', array( $this, 'maybe_hook_migration' ) );
	add_action( 'wp_loaded', array( $this, 'schedule_migration' ) );

	// Action Scheduler may be displayed as a Tools screen or WooCommerce > Status administration screen
	add_action( 'load-tools_page_action-scheduler', array( $this, 'hook_admin_notices' ), 10, 0 );
	add_action( 'load-woocommerce_page_wc-status', array( $this, 'hook_admin_notices' ), 10, 0 );
}