Update image attributes of all images in a given post. Post can be specified by passing post ID or post object.

Image attributes will be updated as per the Bulk Updater Settings of Image Attributes Pro.

iaffpro_update_attributes_in_post_by_post_id( $post_id );
  • Requires Image Attributes Pro 3.0 and above.
  • Accepts the post ID ($post_id) as a parameter.
  • Does not return anything.
  • Can be used for posts, pages, WooCommerce products and any custom post type.

Example Usage

// Update image attributes of all images for a post with ID 247
iaffpro_update_attributes_in_post_by_post_id( 247 );