Skip to content

Instantly share code, notes, and snippets.

@wplaunchify
Created August 20, 2019 16:36
Show Gist options
  • Save wplaunchify/1dbd94ec333feebd7ba2b032dc219719 to your computer and use it in GitHub Desktop.
Save wplaunchify/1dbd94ec333feebd7ba2b032dc219719 to your computer and use it in GitHub Desktop.
Change BenchMark To Trigger (or any other word) in Groundhogg.io
add_filter( 'gettext', 'lab_translate' );
function lab_translate( $translated ) {
$original = array(
// 'original word' = > 'your new translated word'
'Benchmark' => 'Trigger',
);
$translated = str_ireplace( array_keys($original), $original, $translated );
return $translated;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment