Skip to content

Instantly share code, notes, and snippets.

@WerdsWords
Created July 27, 2013 17:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save WerdsWords/6095535 to your computer and use it in GitHub Desktop.
Save WerdsWords/6095535 to your computer and use it in GitHub Desktop.
#24: login_messages
<?php
/**
* AP style-ize 'e-mail' in login messages
*
* @param string $messages The login message(s).
*
* @return string The filtered login message(s).
*/
function wpdocs_login_messages( $messages ) {
$messages = str_replace( 'e-mail', 'email', $messages );
return $messages;
}
add_filter( 'login_messages', 'wpdocs_login_messages' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment