On this page
apply_filters( 'image_get_intermediate_size', array $data, int $post_id, string|int[] $size )
Filters the output of image_get_intermediate_size()
Description
See also
Parameters
$dataarray-
Array of file relative path, width, and height on success. May also include file absolute path and URL.
$post_idint-
The ID of the image attachment.
$sizestring|int[]-
Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).
Source
File: wp-includes/media.php. View all references
return apply_filters( 'image_get_intermediate_size', $data, $post_id, $size );
Related
Used By
| Used By | Description |
|---|---|
| image_get_intermediate_size() wp-includes/media.php | Retrieves the image’s intermediate size (resized) path, width, and height. |
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/image_get_intermediate_size