• I have seen this being asked a few times so here is the solution to add the first_name of user as a shortcode to be used within the notification email:

    Open /add-multiple-users/functions/commonfn.php

    Search for:

    $emailkeywords = array('[sitename]', '[siteurl]', '[siteloginurl]', '[username]', '[password]', '[useremail]', '[fromreply]');
    				$emailreplaces = array($thisBlogName, '<a href="'.$thisBlogUrl.'">'.$thisBlogUrl.'</a>','<a href="'.$thisLoginUrl.'">'.$thisLoginUrl.'</a>', $this->user_login, $this->user_pass, $to, $userfromreply);

    Replace with:

    $emailkeywords = array('[sitename]', '[siteurl]', '[siteloginurl]', '[username]', '[password]', '[useremail]', '[fromreply]', '[user_first_name]');
    				$emailreplaces = array($thisBlogName, '<a href="'.$thisBlogUrl.'">'.$thisBlogUrl.'</a>','<a href="'.$thisLoginUrl.'">'.$thisLoginUrl.'</a>', $this->user_login, $this->user_pass, $to, $userfromreply, $this->first_name);

    I hope that the developer of this plugin continues to develop it, it is very useful indeed.

    You can now use the shortcode [user_first_name] in your email form.

    http://wordpress.org/plugins/add-multiple-users/

  • The topic ‘How to add first_name within the notification email’ is closed to new replies.