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

Filter: wpseo_opengraph_title Allow changing the Yoast SEO generated title.

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

add_filter( 'wpseo_opengraph_title', 'wp_kama_wpseo_opengraph_title_filter', 10, 2 );

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

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

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

Title_Presenter::get()
yoast/src/presenters/open-graph/title-presenter.php 41
$title = (string) \trim( \apply_filters( 'wpseo_opengraph_title', $title, $this->presentation ) );

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

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