WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Самая быстрая Тема-конструктор для WordPress
функция не описана

WPSEO_Admin_Init::__construct() public Yoast 1.0

Class constructor.

Это метод класса: WPSEO_Admin_Init{}

Хуков нет.

Возвращает

Null. Ничего.

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

$WPSEO_Admin_Init = new WPSEO_Admin_Init();
$WPSEO_Admin_Init->__construct();

Код WPSEO_Admin_Init::__construct() Yoast 15.1.1

<?php
public function __construct() {
	$GLOBALS['wpseo_admin'] = new WPSEO_Admin();

	$this->pagenow = $GLOBALS['pagenow'];

	$this->asset_manager = new WPSEO_Admin_Asset_Manager();

	add_action( 'admin_enqueue_scripts', [ $this, 'enqueue_dismissible' ] );
	add_action( 'admin_init', [ $this, 'yoast_plugin_suggestions_notification' ], 15 );
	add_action( 'admin_init', [ $this, 'yoast_plugin_update_notification' ] );
	add_action( 'admin_init', [ $this, 'unsupported_php_notice' ], 15 );
	add_action( 'admin_init', [ $this->asset_manager, 'register_assets' ] );
	add_action( 'admin_init', [ $this, 'show_hook_deprecation_warnings' ] );
	add_action( 'admin_init', [ 'WPSEO_Plugin_Conflict', 'hook_check_for_plugin_conflicts' ] );
	add_action( 'admin_notices', [ $this, 'permalink_settings_notice' ] );

	/*
	 * The `admin_notices` hook fires on single site admin pages vs.
	 * `network_admin_notices` which fires on multisite admin pages and
	 * `user_admin_notices` which fires on multisite user admin pagss.
	 */
	add_action( 'admin_notices', [ $this, 'search_engines_discouraged_notice' ] );

	$health_checks = [
		new WPSEO_Health_Check_Page_Comments(),
		new WPSEO_Health_Check_Ryte(),
		new WPSEO_Health_Check_Default_Tagline(),
		new WPSEO_Health_Check_Postname_Permalink(),
		new WPSEO_Health_Check_Curl_Version(),
		new WPSEO_Health_Check_Link_Table_Not_Accessible(),
	];

	foreach ( $health_checks as $health_check ) {
		$health_check->register_test();
	}

	$this->load_meta_boxes();
	$this->load_taxonomy_class();
	$this->load_admin_page_class();
	$this->load_admin_user_class();
	$this->load_xml_sitemaps_admin();
	$this->load_plugin_suggestions();
}