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

Filter: wpseo_twitter_card_type Allow changing the Twitter card type.

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

add_filter( 'wpseo_twitter_card_type', 'wp_kama_wpseo_twitter_card_type_filter', 10, 2 );
function wp_kama_wpseo_twitter_card_type_filter( $card_type, $presentation ){
	// filter...

	return $card_type;
}
$card_type(строка)
The card type.
$presentation(Indexable_Presentation)
The presentation of an indexable.

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

Card_Presenter::get()
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 ) );

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

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