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

Yoast\WP\SEO\Integrations

Front_End_Integration::get_presenters() public Yoast 1.0

Returns all presenters for this page.

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

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

Abstract_Indexable_Presenter[]. The presenters.

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

$Front_End_Integration = new Front_End_Integration();
$Front_End_Integration->get_presenters( $page_type );
$page_type(строка) (обязательный)
The page type.

Код Front_End_Integration::get_presenters() Yoast 15.6.2

<?php
public function get_presenters( $page_type ) {
	$needed_presenters = $this->get_needed_presenters( $page_type );

	$callback   = function( $presenter ) {
		if ( ! \class_exists( $presenter ) ) {
			return null;
		}
		return new $presenter();
	};
	$presenters = \array_filter( \array_map( $callback, $needed_presenters ) );

	/**
	 * Filter 'wpseo_frontend_presenters' - Allow filtering the presenter instances in or out of the request.
	 *
	 * @api Abstract_Indexable_Presenter[] List of presenter instances.
	 */
	$presenter_instances = \apply_filters( 'wpseo_frontend_presenters', $presenters );

	if ( ! \is_array( $presenter_instances ) ) {
		$presenter_instances = $presenters;
	}

	$is_presenter_callback = function ( $presenter_instance ) {
		return $presenter_instance instanceof Abstract_Indexable_Presenter;
	};
	$presenter_instances   = \array_filter( $presenter_instances, $is_presenter_callback );

	return \array_merge(
		[ new Marker_Open_Presenter() ],
		$presenter_instances,
		[ new Marker_Close_Presenter() ]
	);
}