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

Filter: wpseo_twitter_description Allow changing the Twitter description as output in the Twitter card by Yoast SEO.

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

add_filter( 'wpseo_twitter_description', 'wp_kama_wpseo_twitter_description_filter', 10, 2 );

/**
 * Function for `wpseo_twitter_description` filter-hook.
 * 
 * @param string                 $twitter_description The description string.
 * @param Indexable_Presentation $presentation        The presentation of an indexable.
 *
 * @return string
 */
function wp_kama_wpseo_twitter_description_filter( $twitter_description, $presentation ){

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

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

Description_Presenter::get()
yoast/src/presenters/twitter/description-presenter.php 33
return \apply_filters( 'wpseo_twitter_description', $this->replace_vars( $this->presentation->twitter_description ), $this->presentation );

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

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