Yoast\WP\SEO\Presenters\Open_Graph

Title_Presenter::getpublicYoast 1.0

Run the title content through replace vars, the wpseo_opengraph_title and sanitization.

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

Хуки из метода

Возвращает

Строку. The filtered title.

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

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

Код Title_Presenter::get() Yoast 27.8

public function get() {
	$title = $this->replace_vars( $this->presentation->open_graph_title );

	/**
	 * Filter: 'wpseo_opengraph_title' - Allow changing the Yoast SEO generated title.
	 *
	 * @param string                 $title        The title.
	 * @param Indexable_Presentation $presentation The presentation of an indexable.
	 */
	$title = \trim( (string) \apply_filters( 'wpseo_opengraph_title', $title, $this->presentation ) );
	return $this->helpers->string->strip_all_tags( $title );
}