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

Filters whether to preempt the output of image_downsize().

Description Description

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

Parameters Parameters


(bool) Whether to short-circuit the image downsize. Default false.


(int) Attachment ID for image.


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

Top ↑

Source Source

File: wp-includes/media.php

View on Trac

Top ↑

Changelog Changelog

Version Description
2.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.