Description
The “ims_auto_generate_password” filter is used to modify the password auto generated for each gallery with the option is active.
A plugin (or theme) can modify the array with the code:
<?php add_filter( 'ims_auto_generate_password', 'filter_function_name' ); ?>
The hook is located in the image-store/_inc/galleries.php file.
Example
// Apply filter function change_ims_auto_generated_password( $password ) { return "#9adaslwersodfssel" //add the same password to all galleries } add_filter('ims_auto_generate_password', 'change_ims_auto_generated_password');
Note: $password is an string of numbers and letters.