On this page
apply_filters( 'wp_get_missing_image_subsizes', array[] $missing_sizes, array $image_meta, int $attachment_id )
Filters the array of missing image sub-sizes for an uploaded image.
Parameters
$missing_sizesarray[]-
Associative array of arrays of image sub-size information for missing image sizes, keyed by image size name.
$image_metaarray-
The image meta data.
$attachment_idint-
The image attachment post ID.
Source
File: wp-admin/includes/image.php. View all references
return apply_filters( 'wp_get_missing_image_subsizes', $missing_sizes, $image_meta, $attachment_id );
Related
Used By
| Used By | Description |
|---|---|
| wp_get_missing_image_subsizes() wp-admin/includes/image.php | Compare the existing image sub-sizes (as saved in the attachment meta) to the currently registered image sub-sizes, and return the difference. |
Changelog
| Version | Description |
|---|---|
| 5.3.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_get_missing_image_subsizes