image_resize_dimensions
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
apply_filters( 'image_resize_dimensions', null|mixed $null, int $orig_w, int $orig_h, int $dest_w, int $dest_h, bool|array $crop )
Описание
Возврат значения, отличного от null, из фильтра фактически прерывает image_resize_dimensions() и возвращает вместо этого переданное значение.
Оригинал (английский)
Returning a non-null value from the filter will effectively short-circuit image_resize_dimensions() , returning that value instead.
Фильтруемое значение
Параметры
$null
null|mixed
обязательный
$orig_w
int
обязательный
$orig_h
int
обязательный
$dest_w
int
обязательный
$dest_h
int
обязательный
$crop
bool|array
обязательный
Исходный код
wp-includes/media.php:569
$output = apply_filters( 'image_resize_dimensions', null, $orig_w, $orig_h, $dest_w, $dest_h, $crop );
История изменений
| Версия | Описание |
|---|---|
| 3.4.0 | Introduced. |

