Created
September 24, 2019 12:01
-
-
Save sareiodata/6e0a224302dbee5b4be9d05491f4fafc to your computer and use it in GitHub Desktop.
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 | |
add_action( 'trp_before_running_hooks', 'trpc_remove_hooks_to_disable_gettext_translation', 10, 1); | |
function trpc_remove_hooks_to_disable_gettext_translation( $trp_loader ){ | |
$trp_loader->remove_hook( 'init', 'create_gettext_translated_global' ); | |
$trp_loader->remove_hook( 'shutdown', 'machine_translate_gettext' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment