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', 'filter_function_name_4761', 10, 2 ); function filter_function_name_4761( $twitter_description, $presentation ){ // filter... return $twitter_description; }
- $twitter_description(строка)
- The description string.
- $presentation(Indexable_Presentation)
- The presentation of an indexable.
Где вызывается хук
wpseo_twitter_description
yoast/src/presenters/twitter/description-presenter.php 33
return \apply_filters( 'wpseo_twitter_description', $this->replace_vars( $this->presentation->twitter_description ), $this->presentation );