Description
The “ims_include_$file-name}” filter runs on each php file include that doesn’t have it’s own hook. Version 3.4.5+.
A plugin (or theme) can add an action with the code:
<?php add_filter( 'ims_include_{file-name}', 'filter_function_name' ); ?>
The hook is located in the image-store/_inc/core.php file.
Example
// apply action function ims_change_customer_edit_file( $file, $dir ) { return "full/path/to/new/file.php"; } add_filter('ims_include_customer-edit', 'ims_change_customer_edit_file');
Note: $file is an string, $dir is an string array.