{"id":541,"date":"2019-01-05T04:53:54","date_gmt":"2019-01-04T23:23:54","guid":{"rendered":"https:\/\/imageattributespro.com\/?post_type=codex&p=541"},"modified":"2021-06-18T01:01:55","modified_gmt":"2021-06-17T19:31:55","slug":"iaffpro_image_attributes","status":"publish","type":"codex","link":"https:\/\/imageattributespro.com\/codex\/iaffpro_image_attributes\/","title":{"rendered":"iaffpro_image_attributes"},"content":{"rendered":"

Filter the generated image attributes before they are used by the bulk updater. <\/p>

\/**\n * Filter generated image attributes\n * \n * @param $attributes \t\t(array) Associative array of image attributes.\n * @param $image_id \t\t(int) ID of the current image. \n * @param $parent_post_id\t(int) ID of the post the image is inserted into. 0 for images not attached to a post. \n * \n * @since 1.3\n *\/\n$attributes = apply_filters( 'iaffpro_image_attributes', $attributes, $image_id, $parent_post_id );<\/code><\/pre>

The $attributes<\/code> is an associative array with the following array keys and values. <\/p>