Take into account $override that can be filtered by override_load_textdomain
-
Hello, I have decided to turn off some of translations files at all, and there is way to do it (i have added it to mu_plugin:
add_filter( ‘override_load_textdomain’, ‘stop_language_files’, 100, 2 );
function stop_language_files( $bool, $domain ){$text_domains = array(‘domain’); //domains here
if ( in_array($domain,$text_domains ))
? ? ? ? return TRUE;return $bool;
}
value is set correctly but during plugin execution this var is not checked. I think this can be added in line 96 of plugin
if ($override) return true;
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Take into account $override that can be filtered by override_load_textdomain’ is closed to new replies.