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

WPSEO_Admin_Menu::register_settings_page() public Yoast 1.0

Registers the menu item submenus.

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

Хуков нет.

Возвращает

Null. Ничего.

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

$WPSEO_Admin_Menu = new WPSEO_Admin_Menu();
$WPSEO_Admin_Menu->register_settings_page();

Код WPSEO_Admin_Menu::register_settings_page() Yoast 15.1.1

<?php
public function register_settings_page() {
	$can_manage_options = $this->check_manage_capability();

	if ( $can_manage_options ) {
		/*
		 * The current user has the capability to control anything.
		 * This means that all submenus and dashboard can be shown.
		 */
		global $admin_page_hooks;

		add_menu_page(
			'Yoast SEO: ' . __( 'Dashboard', 'wordpress-seo' ),
			__( 'SEO', 'wordpress-seo' ) . ' ' . $this->get_notification_counter(),
			$this->get_manage_capability(),
			$this->get_page_identifier(),
			$this->get_admin_page_callback(),
			WPSEO_Utils::get_icon_svg(),
			'99.31337'
		);

		// Wipe notification bits from hooks.
		$admin_page_hooks[ $this->get_page_identifier() ] = 'seo';
	}

	// Get all submenu pages.
	$submenu_pages = $this->get_submenu_pages();

	// Add submenu items to the main menu if possible.
	if ( $can_manage_options ) {
		$this->register_submenu_pages( $submenu_pages );
	}

	/*
	 * If the user does not have the general manage options capability,
	 * we need to make sure the desired sub-item can be reached.
	 */
	if ( ! $can_manage_options ) {
		$this->register_menu_pages( $submenu_pages );
	}
}