Description
The “ims_load_textdomain” filter is used to modify the path to the translation file. View load_plugin_textdomain for more details.
A plugin (or theme) can modify the path with the code:
<?php add_filter( 'ims_load_textdomain', 'filter_function_name' ); ?>
The hook is located in the image-store/_inc/core.php file.
Example
// Apply filter function modify_ims_textdomain( $path ) { return "path/to/custom/translation/file/"; add_filter('ims_load_textdomain', 'modify_ims_textdomain');
Note: $path is an string, path relative to the translation .mo file.
Leave a Reply