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().

Passing a truthy value to the filter will effectively short-circuit down-sizing the image, returning that value as output instead.


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

	return $downsize;
Whether to short-circuit the image downsize.
Default: false
Attachment ID for image.
Size of image. Image size or array of width and height values (in that order).
Default: 'medium'

Where the hook is called

wp-includes/media.php 198
if ( $out = apply_filters( 'image_downsize', false, $id, $size ) ) {
wp-includes/media.php 3319
if ( $downsize = apply_filters( 'image_downsize', false, $attachment->ID, $size ) ) {

Where the hook is used (in WP core)

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