wpseo_twitter_card_type хук-фильтр . Yoast 1.0
Filter: 'wpseo_twitter_card_type' - Allow changing the Twitter card type.
Использование
add_filter( 'wpseo_twitter_card_type', 'filter_function_name_3872', 10, 2 ); function filter_function_name_3872( $card_type, $presentation ){ // filter... return $card_type; }
- $card_type(строка)
- The card type.
- $presentation(Indexable_Presentation)
- The presentation of an indexable.
Где вызывается хук
wpseo_twitter_card_type
yoast/src/presenters/twitter/card-presenter.php 33
return \trim( \apply_filters( 'wpseo_twitter_card_type', $this->presentation->twitter_card, $this->presentation ) );