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:

Description

If any of the currently registered image sub-sizes are missing, create them and update the image meta data.

Related Functions

wp_create_image_subsizes, wp_calculate_image_sizes, wp_ajax_media_create_image_subsizes, _wp_make_subsizes, wp_get_missing_image_subsizes

Top Google Results

User discussions

wpseek mobile