fun_load_textdomain

Description

The “fun_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( 'fun_load_textdomain', 'filter_function_name' ); ?>

The hook is located in the file-un-attach/file-unattach.php file.

Example

// Apply filter
function modify_fun_load_textdomain $path ) {
return "path/to/custom/translation/file/";
}
add_filter('fun_load_textdomain', 'modify_fun_load_textdomain');

Note: $path is an string, path relative to the translation .mo file.


Comments

Leave a Reply

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