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 19.7.1

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