WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: New User Email Set Up] Info: How to add variables (2 posts)

  1. igalp
    Member
    Posted 4 years ago #

    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/

  2. Zulu1950
    Member
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic