WordPress at a glance
filter is not described

wp_image_resize_identical_dimensions filter-hook . WP 5.3.0

Filters whether to proceed with making an image sub-size with identical dimensions with the original/source image. Differences of 1px may be due to rounding and are ignored.


add_filter( 'wp_image_resize_identical_dimensions', 'filter_function_name_6389', 10, 3 );
function filter_function_name_6389( $proceed, $orig_w, $orig_h ){
	// filter...

	return $proceed;
The filtered value.
Original image width.
Original image height.

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

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

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

wp-includes/media.php 649
$proceed = (bool) apply_filters( 'wp_image_resize_identical_dimensions', false, $orig_w, $orig_h );

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

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