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.


// 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

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