Skip to content

Instantly share code, notes, and snippets.

@sareiodata
Created September 24, 2019 12:01
Show Gist options
  • Save sareiodata/6e0a224302dbee5b4be9d05491f4fafc to your computer and use it in GitHub Desktop.
Save sareiodata/6e0a224302dbee5b4be9d05491f4fafc to your computer and use it in GitHub Desktop.
<?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