WPSEO_Image_Utils::get_sizes()public staticYoast 1.0

Retrieve the internal WP image file sizes.

Метод класса: WPSEO_Image_Utils{}

Хуки из метода

Возвращает

Массив. An array of image sizes.

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

$result = WPSEO_Image_Utils::get_sizes();

Код WPSEO_Image_Utils::get_sizes() Yoast 22.4

public static function get_sizes() {
	/**
	 * Filter: 'wpseo_image_sizes' - Determines which image sizes we'll loop through to get an appropriate image.
	 *
	 * @param array<string> $sizes The array of image sizes to loop through.
	 */
	return apply_filters( 'wpseo_image_sizes', [ 'full', 'large', 'medium_large' ] );
}