iaffpro_update_media_library

This filter decides if bulk updater should update the image attributes in the media library.

Default value is true and image attributes in the media library are updated by default.

/** 
 * Update image attributes in media library
 * 
 * Set filter iaffpro_update_media_library to false 
 * to disable updating of attributes in media library. 
 * 
 * @since 1.3
 */
if ( apply_filters( 'iaffpro_update_media_library', true ) ) {
	iaffpro_update_image( $image->ID, $attributes, $bulk );
}

Example Usage

To prevent the bulk updater from updating image title, caption, description and alt text in your WordPress media library, add the following to the functions.php of the active theme.

/**
 * Prevent Image Attributes Pro bulk updater from updating
 * image attributes in media library
 * 
 * @author Arun Basil Lal
 * @link https://imageattributespro.com/codex/iaffpro-update-media-library/
 */
add_filter( 'iaffpro_update_media_library', '__return_false' );