ims_optimize

Description

The “ims_optimize” filter is used to modify the value to allow or not allow the optimization of MySQL tables.

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

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

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

Example

// Apply filter
function modify_ims_optimize( $bool, $action ) {
if( $action == 'uninstall' )
return false; // do not optimize when plugin is uninstall
}
add_filter('ims_optimize', 'modify_ims_optimize');

Note: $bool is an boolean value, $action is a string.


Comments

Leave a Reply

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