wp_get_missing_image_subsizes
wp_get_missing_image_subsizes ( $attachment_id )
Parameters:- (int) attachment_id The image attachment post ID.
Returns:- (array[]) Associative array of arrays of image sub-size information for missing image sizes, keyed by image size name.
Defined at: - Introduced in WordPress: 5.3.0
- Deprecated in WordPress: —
Description
Compare the existing image sub-sizes (as saved in the attachment meta)
to the currently registered image sub-sizes, and return the difference.Registered sub-sizes that are larger than the image are skipped.