Yoast\WP\SEO\Plans\User_Interface

Plans_Page_Integration::add_pagepublicYoast 1.0

Adds the page to the (currently) last position in the array.

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

Хуков нет.

Возвращает

Массив<Строку,. array<string, array<static|string>>> The pages.

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

$Plans_Page_Integration = new Plans_Page_Integration();
$Plans_Page_Integration->add_page( $pages );
$pages(обязательный)
.

Код Plans_Page_Integration::add_page() Yoast 27.8

public function add_page( $pages ) {
	$pages[] = [
		General_Page_Integration::PAGE,
		'',
		\__( 'Plans', 'wordpress-seo' ),
		'wpseo_manage_options',
		self::PAGE,
		[ $this, 'display_page' ],
	];

	return $pages;
}