wp_update_image_subsizes
wp_update_image_subsizes ( $attachment_id )
Parameters:- (int) attachment_id The image attachment post ID.
Returns:- (array|WP_Error) The updated image meta data array or WP_Error object if both the image meta and the attached file are missing.
Defined at: - Introduced in WordPress: 5.3.0
- Deprecated in WordPress: —
Description
If any of the currently registered image sub-sizes are missing,
create them and update the image meta data.