wpseo_image_sizes хук-фильтр . Yoast 1.0
Filter: 'wpseo_image_sizes' - Determines which image sizes we'll loop through to get an appropriate image.
Использование
add_filter( 'wpseo_image_sizes', 'filter_function_name_6087', 10, 2 ); function filter_function_name_6087( $[ full, $string ){ // filter... return $[ full; }
- $[ full(массив)
- The array of image sizes to loop through.
- $string
- -
Где вызывается хук
wpseo_image_sizes
yoast/inc/class-wpseo-image-utils.php 362
return apply_filters( 'wpseo_image_sizes', [ 'full', 'large', 'medium_large' ] );