{"id":548,"date":"2019-01-05T05:07:05","date_gmt":"2019-01-04T23:37:05","guid":{"rendered":"https:\/\/imageattributespro.com\/?post_type=codex&p=548"},"modified":"2023-04-25T09:37:26","modified_gmt":"2023-04-25T04:07:26","slug":"iaffpro_update_media_library","status":"publish","type":"codex","link":"https:\/\/imageattributespro.com\/codex\/iaffpro_update_media_library\/","title":{"rendered":"iaffpro_update_media_library"},"content":{"rendered":"\n
This filter decides if bulk updater should update the image attributes in the media library. <\/p>\n\n\n\n
Default value is true and image attributes in the media library are updated by default. <\/p>\n\n\n\n
\/** \n * Update image attributes in media library\n * \n * Set filter iaffpro_update_media_library to false \n * to disable updating of attributes in media library. \n * \n * @since 1.3\n *\/\nif ( apply_filters( 'iaffpro_update_media_library', true ) ) {\n\tiaffpro_update_image( $image->ID, $attributes, $bulk );\n}<\/code><\/pre>\n\n\n\nStarting with Image Attributes Pro version 4.3<\/code>, updates to the Media Library can be disabled from the UI directly without the need for this filter. The filter is still available if you wish to do so programmatically. <\/p>\n\n\n\nNote that Image Attributes Pro updates image caption and image description only in the Media Library. To disable Media Library updates for image caption and description, disable updating image caption and description completely, as you can see in the screenshot below. <\/p>\n\n\n\n