apply_filters( 'wp_get_missing_image_subsizes', array[] $missing_sizes, array $image_meta, int $attachment_id )
- Since
- 5.3.0
Filters the array of missing image sub-sizes for an uploaded image.
Compatibility
- WordPress
- since 5.3.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
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.
Where this hook fires · 1
wp-admin/includes/image.php:146wp_get_missing_image_subsizes()
Source code
* * @param array[] $missing_sizes Associative array of arrays of image sub-size information for * missing image sizes, keyed by image size name. * @param array $image_meta The image meta data. * @param int $attachment_id The image attachment post ID. */ return apply_filters( 'wp_get_missing_image_subsizes', $missing_sizes, $image_meta, $attachment_id );} /** * If any of the currently registered image sub-sizes are missing, * create them and update the image meta data. *Changelog
Introduced in 5.3.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.7.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.