WPSEO_Admin_Init::__construct()publicYoast 1.0

Class constructor.

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

Хуков нет.

Возвращает

null. Ничего.

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

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

Код WPSEO_Admin_Init::__construct() Yoast 19.6.1

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, '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' ] );
	add_action( 'post_submitbox_misc_actions', [ $this, 'add_publish_box_section' ] );

	$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();
}