Created
December 11, 2015 02:16
-
-
Save digisavvy/1734e25d87619a6f1695 to your computer and use it in GitHub Desktop.
Change Jetpack Protect Bot Challenge Text
This file contains hidden or 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
/** | |
* Change text string for Jetpack Protect Bot Challenge Text | |
* | |
* @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext | |
*/ | |
function digisavvy_change_humanity_string( $translated_text, $text, $domain ) { | |
switch ( $translated_text ) { | |
case 'Prove your humanity:' : | |
$translated_text = __( 'Prove you\'re not a bot', 'jetpack' ); | |
break; | |
} | |
return $translated_text; | |
} | |
add_filter( 'gettext', 'digisavvy_change_humanity_string', 20, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment