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', 'wp_kama_wpseo_image_sizes_filter', 10, 2 );

/**
 * Function for `wpseo_image_sizes` filter-hook.
 * 
 * @param array $sizes  The array of image sizes to loop through.
 * @param               $string 
 *
 * @return array
 */
function wp_kama_wpseo_image_sizes_filter( $sizes, $string ){

	// filter...
	return $sizes;
}
$sizes(array)
The array of image sizes to loop through.
$string
-

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

WPSEO_Image_Utils::get_sizes()
wpseo_image_sizes
yoast/inc/class-wpseo-image-utils.php 409
return apply_filters( 'wpseo_image_sizes', [ 'full', 'large', 'medium_large' ] );

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

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