WordPress at a glance
filter is not described

image_downsize filter-hook . WP 2.5.0

Filters whether to preempt the output of image_downsize().

Returning a truthy value from the filter will effectively short-circuit down-sizing the image, returning that value instead.


add_filter( 'image_downsize', 'filter_function_name_676', 10, 3 );
function filter_function_name_676( $downsize, $id, $size ){
	// filter...

	return $downsize;
Whether to short-circuit the image downsize.
Attachment ID for image.
Requested size of image. Image size name, or array of width and height values (in that order).

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

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

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

wp-includes/media.php 208
$out = apply_filters( 'image_downsize', false, $id, $size );
wp-includes/media.php 3857
$downsize = apply_filters( 'image_downsize', false, $attachment->ID, $size );

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

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