Used By
Used By | Description |
---|---|
wp-admin/includes/image.php: wp_create_image_subsizes() | Creates image sub-sizes, adds the new data to the image meta |
Filters the “BIG image” threshold value.
If the original image width or height is above the threshold, it will be scaled down. The threshold is used as max width and max height. The scaled down image will be used as the largest available size, including the _wp_attached_file
post meta value.
Returning false
from the filter callback will disable the scaling.
(int) The threshold value in pixels. Default 2560.
(array) Indexed array of the image width and height in pixels.
(int) The image height.
(string) Full path to the uploaded image file.
(int) Attachment post ID.
Version | Description |
---|---|
5.3.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/big_image_size_threshold