Support » Fixing WordPress » Editing Login Details Message

  • Where in WP can I go to edit the Login Details Message users receive after registration/when added by admin to site. Or, (possibly) is there a plugin out there somewhere?

    Thanks in advance.

Viewing 1 replies (of 1 total)
  • If you are looking to edit the content take a look at this plugin:

    If you are looking to edit the from name and or email address you will need to create a child theme and add some or all of the following code to your functions.php in the child theme.

    Note: Remember to change the YOUR NAME HERE and YOUR EMAIL ADDRESS HERE as appropriate in the below code.

    function wpb_sender_email($from) {
    		// Get the site domain and get rid of www.
    		// see wp_mail() in pluggable.php
    		$sitename = strtolower($_SERVER['SERVER_NAME']);
    		if (substr($sitename, 0, 4) == 'www.') {
    			$sitename = substr($sitename, 4);
    		if ($from === 'wordpress@' . $sitename) {
    			$from = 'YOUR EMAIL ADDRESS HERE';
    		return $from;
    // Function to change sender name
    function wpb_sender_name($from_name) {
    		if ($from_name === 'WordPress') {
    			$from_name = 'YOUR NAME HERE';
    		return $from_name;
    // Hooking up our functions to WordPress filters 
    add_filter( 'wp_mail_from', 'wpb_sender_email' );
    add_filter( 'wp_mail_from_name', 'wpb_sender_name' );

    More info on child themes:

    Hope this helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Editing Login Details Message’ is closed to new replies.