Description
The “pop_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( 'pop_load_textdomain', 'filter_function_name' ); ?>
The hook is located in the popular-widget/_inc/functions.php file.
Example
// Apply filter function modify_pop_textdomain( $path ) { return "path/to/custom/translation/file/"; } add_filter('pop_load_textdomain', 'modify_pop_textdomain');
Note: $path is an string, path relative to the translation .mo file.
Leave a Reply