Skip to content

Instantly share code, notes, and snippets.

@BurlesonBrad
Created March 19, 2019 20:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BurlesonBrad/046099bf4a7a6e0b05d39903a4ca10ef to your computer and use it in GitHub Desktop.
Save BurlesonBrad/046099bf4a7a6e0b05d39903a4ca10ef to your computer and use it in GitHub Desktop.
for Amanda Brookshire
<?php /* <---don't add that line if you're pasting this into a snippets plugin */
add_filter( 'gettext', 'amanda_changes_suspend_to_pause', 20, 3 );
function amanda_changes_suspend_to_pause( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case 'Suspend' :
$translated_text = __( 'Pause', 'woocommerce' );
break;
}
}
add_filter( 'gettext', 'amanda_changes_suspend_to_pause', 20, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment