wp_update_image_subsizes


wp_update_image_subsizes ( $attachment_id )

Parameters:
  • (int) $attachment_id The image attachment post ID.
Returns:
  • (array) The updated image meta data array.
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_get_missing_image_subsizes, wp_get_registered_image_subsizes, wp_calculate_image_srcset

Top Google Results

User discussions

wpseek mobile