Core Function
View Source on Trac ↗ wp_update_image_subsizes()
wp_update_image_subsizes( mixed $attachment_id ) If any of the currently registered image sub-sizes are missing,
Parameters 1 required
| Name / Type | Description |
|---|---|
| $attachment_id int | The image attachment post ID. Required |
Return Value
((array)
(array | WP_Error) The updated image meta data array or WP_Error object
if both the image meta and the attached file are missing.
Function Information
Since Version
5.3.0
Source File
wp-admin/includes/image.php
Advertisement