Created
March 1, 2016 18:15
-
-
Save victorknust/a87a77b5e03925c3b39d to your computer and use it in GitHub Desktop.
Editing WordPress registration confirmation message
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
<?php | |
// Editing WordPress registration confirmation message | |
// http://wp.me/p1Ehkq-gn | |
add_filter( 'gettext', 'ts_edit_password_email_text' ); | |
function ts_edit_password_email_text ( $text ) { | |
if ( $text == 'A password will be e-mailed to you.' ) { | |
$text = 'If you leave password fields empty one will be generated for you. Password must be at least eight characters long.'; | |
} | |
return $text; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment