wpseo_twitter_image_size хук-фильтр . Yoast 1.0
Filter: 'wpseo_twitter_image_size' - Allow changing the Twitter Card image size.
Использование
add_filter( 'wpseo_twitter_image_size', 'filter_function_name_7401' ); function filter_function_name_7401( $featured_img ){ // filter... return $featured_img; }
- $featured_img(строка)
- Image size string.
Где вызывается хук
wpseo_twitter_image_size
yoast/src/helpers/twitter/image-helper.php 41
return (string) \apply_filters( 'wpseo_twitter_image_size', 'full' );