Yoast\WP\SEO\Presenters

Title_Presenter::get()publicYoast 1.0

Gets the raw value of a presentation.

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

Хуков нет.

Возвращает

Строку. The raw value.

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

$Title_Presenter = new Title_Presenter();
$Title_Presenter->get();

Код Title_Presenter::get() Yoast 19.2

public function get() {
	// This ensures backwards compatibility with other plugins using this filter as well.
	\add_filter( 'pre_get_document_title', [ $this, 'get_title' ], 15 );
	$title = \wp_get_document_title();
	\remove_filter( 'pre_get_document_title', [ $this, 'get_title' ], 15 );
	return $title;
}