Last active
March 30, 2017 14:11
-
-
Save pryley/628ccca41297938c54bbe79c1e5c1b1f to your computer and use it in GitHub Desktop.
[Site Reviews snippet] Custom text strings
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
<?php | |
// Translate text strings | |
// http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext | |
add_filter( 'gettext', function( $translated_text, $text, $domain ) { | |
return ( $domain == 'site-reviews' && $translated_text == 'Submit your review' ) | |
? __( 'Make it so!', 'site-reviews-custom' ) | |
: $translated_text; | |
}, 20, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment