apply_filters( 'image_downsize', bool $downsize, int $id, array|string $size )

Filters whether to preempt the output of image_downsize().


Description

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


Parameters

$downsize

Whether to short-circuit the image downsize. Default false.

$id

Attachment ID for image.

$size

Size of image. Image size or array of width and height values (in that order). Default 'medium'.


Source

File: wp-includes/media.php

View on GitHub


Changelog

Changelog
Version Description
WP-2.5.0 Introduced.