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

Yoast\WP\SEO\Integrations

Front_End_Integration::get_presenters_for_page_type() private Yoast 1.0

Filters the presenters based on the page type.

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

Хуков нет.

Возвращает

Строку[]. The presenters.

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

// private - только в коде основоного (родительского) класса
$result = $this->get_presenters_for_page_type( $page_type );
$page_type(строка) (обязательный)
The page type.

Код Front_End_Integration::get_presenters_for_page_type() Yoast 16.8

<?php
private function get_presenters_for_page_type( $page_type ) {
	if ( $page_type === 'Error_Page' ) {
		$presenters = $this->base_presenters;
		if ( $this->options->get( 'opengraph' ) === true ) {
			$presenters = \array_merge( $presenters, $this->open_graph_error_presenters );
		}
		return \array_merge( $presenters, $this->closing_presenters );
	}

	$presenters = $this->get_all_presenters();
	if ( \in_array( $page_type, [ 'Static_Home_Page', 'Home_Page' ], true ) ) {
		$presenters = \array_merge( $presenters, $this->webmaster_verification_presenters );
	}

	// Filter out the presenters only needed for singular pages on non-singular pages.
	if ( ! \in_array( $page_type, [ 'Post_Type', 'Static_Home_Page' ], true ) ) {
		$presenters = \array_diff( $presenters, $this->singular_presenters );
	}

	return $presenters;
}