Last active
January 14, 2019 20:25
-
-
Save billrobbins/310b4823be7e1e687d8b6f0968e74426 to your computer and use it in GitHub Desktop.
Place the original text on the left of the => and the new text on the right.
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
function change_deposit_text( $translated ) { | |
$text = array( | |
'The minimum order quantity for %s is %s - please increase the quantity in your cart.' => 'Ahh man, For %s you need a total of %s to order', | |
); | |
$translated = str_ireplace( array_keys($text), $text, $translated ); | |
return $translated; | |
} | |
add_filter( 'gettext', 'change_deposit_text', 20 ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment