Skip to content

Instantly share code, notes, and snippets.

@victorknust
Created March 1, 2016 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save victorknust/a87a77b5e03925c3b39d to your computer and use it in GitHub Desktop.
Save victorknust/a87a77b5e03925c3b39d to your computer and use it in GitHub Desktop.
Editing WordPress registration confirmation message
<?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