WordPress at a glance
filter is not described

image_resize_dimensions filter-hook . WP 3.4.0

Filters whether to preempt calculating the image resize dimensions.

Returning a non-null value from the filter will effectively short-circuit image_resize_dimensions(), returning that value instead.


add_filter( 'image_resize_dimensions', 'filter_function_name_6145', 10, 6 );
function filter_function_name_6145( $null, $orig_w, $orig_h, $dest_w, $dest_h, $crop ){
	// filter...

	return $null;
Whether to preempt output of the resize dimensions.
Original width in pixels.
Original height in pixels.
New width in pixels.
New height in pixels.
Whether to crop image to specified width and height or resize. An array can specify positioning of the crop area.
Default: false

Список изменений

С версии 3.4.0 Введена.

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

wp-includes/media.php 557
$output = apply_filters( 'image_resize_dimensions', null, $orig_w, $orig_h, $dest_w, $dest_h, $crop );

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

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