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 $[ full The array of image sizes to loop through.
 * @param       $string 
 *
 * @return array
 */
function wp_kama_wpseo_image_sizes_filter( $[ full, $string ){

	// filter...
	return $[ full;
}
$[ full(массив)
The array of image sizes to loop through.
$string
-

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

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

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

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