Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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