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