Description
The “ims_allowed_extensions” filter is used to add or remove allowed image file extensions.
A plugin (or theme) can modify the array with the code:
<?php add_filter( 'ims_allowed_extensions', 'filter_function_name' ); ?>
The hook is located in the image-store/_inc/galleries.php file.
Example
// Apply filter function add_ims_extensions( $extensions ) { $extensions[] = 'psd'; // add new extension return $extensions; } add_filter('ims_allowed_extensions', 'add_ims_extensions');
Note: $extensions is an numeric array including file extensions.
Leave a Reply