Yoast_Notification_Center::__construct()privateYoast 1.0

Construct.

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

Хуков нет.

Возвращает

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

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

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

Код Yoast_Notification_Center::__construct() Yoast 22.4

private function __construct() {

	add_action( 'init', [ $this, 'setup_current_notifications' ], 1 );

	add_action( 'all_admin_notices', [ $this, 'display_notifications' ] );

	add_action( 'wp_ajax_yoast_get_notifications', [ $this, 'ajax_get_notifications' ] );

	add_action( 'wpseo_deactivate', [ $this, 'deactivate_hook' ] );
	add_action( 'shutdown', [ $this, 'update_storage' ] );
}