ims_aternative_image_sizes

Description

The “ims_aternative_image_sizes” filter is used to add or remove image sizes that need to be generated every time an image is uploaded or a folder is scanned.

A plugin (or theme) can modify the array with the code:

<?php add_filter( 'ims_aternative_image_sizes', 'filter_function_name' ); ?>

The hook is located in the image-store/_inc/admin.php file.

Example

// Apply filter
function add_ims_aternative_image_sizes( $sizes ) {
	$sizes[] = 'export'; // add new extension
	return $sizes; 
}
add_filter('ims_aternative_image_sizes', 'add_ims_aternative_image_sizes');

Note:  $sizes is an numeric array.


Leave a Reply

Your email address will not be published. Required fields are marked *