Forked from digisavvy/jetpack-bot-challenge-text-change.php
Created
December 11, 2015 03:16
-
-
Save bentasm1/7c217432e53bfb2d4be7 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