ActionScheduler_DBLogger::init │ public │ WC 1.0

Initialize the data store.

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

Хуков нет.

Возвращает

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

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

$ActionScheduler_DBLogger = new ActionScheduler_DBLogger();
$ActionScheduler_DBLogger->init();

Код ActionScheduler_DBLogger::init() WC 11.2.2

public function init() {
	$table_maker = new ActionScheduler_LoggerSchema();
	$table_maker->init();
	$table_maker->register_tables();

	parent::init();

	add_action( 'action_scheduler_deleted_action', array( $this, 'clear_deleted_action_logs' ), 10, 1 );
	add_action( 'action_scheduler_canceled_corrupted_action', array( $this, 'clear_deleted_action_logs' ), 10, 1 );
	add_action( 'action_scheduler_clear_deleted_action_logs_hook', array( $this, 'clear_deleted_action_logs_single_batch' ), 10, 4 );
}