Last active
June 11, 2018 21:41
-
-
Save BurlesonBrad/6065c9b66b8c38c86b5fe23f4681b987 to your computer and use it in GitHub Desktop.
Change GDPR text
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 gdpr_uwphelp( $translated_text, $text, $domain ) { | |
switch ( $translated_text ) { | |
case 'Save my name, email, and website in this browser for the next time I comment.' : | |
$translated_text = __( 'UltimateWPHelp can change the default text' ); | |
break; | |
} | |
return $translated_text; | |
} | |
add_filter( 'gettext', 'gdpr_uwphelp', 20, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment