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

Yoast\WP\SEO\Integrations

Front_End_Integration::get_needed_presenters() private Yoast 1.0

Generate the array of presenters we need for the current request.

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

Хуки из метода
Возвращает

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

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

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

Код Front_End_Integration::get_needed_presenters() Yoast 15.6.2

<?php
private function get_needed_presenters( $page_type ) {
	$presenters = $this->get_presenters_for_page_type( $page_type );

	if ( ! \get_theme_support( 'title-tag' ) && ! $this->options->get( 'forcerewritetitle', false ) ) {
		// Remove the title presenter if the theme is hardcoded to output a title tag so we don't have two title tags.
		$presenters = \array_diff( $presenters, [ 'Title' ] );
	}

	$callback   = function ( $presenter ) {
		return "Yoast\WP\SEO\Presenters\\{$presenter}_Presenter";
	};
	$presenters = \array_map( $callback, $presenters );

	/**
	 * Filter 'wpseo_frontend_presenter_classes' - Allow filtering presenters in or out of the request.
	 *
	 * @api array List of presenters.
	 */
	$presenters = \apply_filters( 'wpseo_frontend_presenter_classes', $presenters );

	return $presenters;
}