Created
May 27, 2021 19:14
-
-
Save timersys/8c956577f1033bb9fdd1e9df78e9ce73 to your computer and use it in GitHub Desktop.
Change the GeotargetingWP translation file location
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function wpse159536_override_mofile_path( $mofile, $domain ){ | |
if( 'geot' == $domain ){ | |
$mofile = WP_LANG_DIR . '/plugins/' . basename( $mofile ); | |
} | |
return $mofile; | |
} | |
add_filter( 'load_textdomain_mofile', 'wpse159536_override_mofile_path', 10, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment