Created
March 2, 2017 18:31
-
-
Save 5A5K1A/642fab8c4f99b6af7e5974a26f3c524f to your computer and use it in GitHub Desktop.
WordPress LocoTranslate Add domain
This file contains hidden or 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 | |
filter_gettext( function($key, $translation, $domain) { | |
if( $key == $translation ) { } | |
if( $domain =='' ) { $domain = 'domain'; } | |
return __($key, $domain); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment