Summery Summery

Filters the output of ‘wp_calculate_image_sizes()’.

Syntax Syntax

apply_filters( 'wp_calculate_image_sizes', string $sizes, array|string $size, string|null $image_src, array|null $image_meta, int $attachment_id )

Parameters Parameters


(string) A source size value for use in a 'sizes' attribute.


(array|string) Requested size. Image size or array of width and height values in pixels (in that order).


(string|null) The URL to the image file or null.


(array|null) The image meta data as returned by wp_get_attachment_metadata() or null.


(int) Image attachment ID of the original image or 0.

Source Source

File: wp-includes/media.php


Changelog Changelog

Version Description
4.4.0 Introduced.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

What are you looking for?