WordPress.org

Support

Support » Plugins and Hacks » [Plugin: New User Email Set Up] Info: How to add variables

[Plugin: New User Email Set Up] Info: How to add variables

  • Hi,

    First, thanks for this plugin. It is really useful.

    Second, if you want to add more variables and customize your “new user emails”, follow this (referring to version 0.5.1 of the plugin!):

    e.g.: add the user’s first name to the email:
    1. insert a new line after line 347 (without quotes): “$user_first = stripslashes($user->first_name);”
    2. In line 350: after the useremail variable add (without the quotes) “, ‘/%userfirstname%/i'”
    3. In line 351: after $user_email, add (without the quotes) “, $user_first”
    4. Click on update file…
    5. Go to the user email settings screen and add your new variable: %userfirstname% in your desired location.

    Notes:
    1. if you need the user’s last name, use: stripslashes($user->last_name)

    http://wordpress.org/extend/plugins/new-user-email-set-up/

Viewing 1 replies (of 1 total)
  • igalp,

    I am wanting to put first_name and last_name in my Admin notification email, but have 0.5.2 and line numbers must be off. Any help or suggestion would be appreciated.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: New User Email Set Up] Info: How to add variables’ is closed to new replies.