wpseo_title хук-фильтрYoast 1.0

Filter: wpseo_title Allow changing the Yoast SEO generated title.

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

add_filter( 'wpseo_title', 'wp_kama_wpseo_title_filter', 10, 2 );

/**
 * Function for `wpseo_title` filter-hook.
 * 
 * @param string                 $title        The title.
 * @param Indexable_Presentation $presentation The presentation of an indexable.
 *
 * @return string
 */
function wp_kama_wpseo_title_filter( $title, $presentation ){

	// filter...
	return $title;
}
$title(строка)
The title.
$presentation(Indexable_Presentation)
The presentation of an indexable.

Где вызывается хук

Title_Presenter::get_title()
wpseo_title
yoast/src/presenters/title-presenter.php 75
$title = \apply_filters( 'wpseo_title', $title, $this->presentation );

Где используется хук в Yoast SEO

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