{user} Merge Tag

Summary

Displays the value of the user meta field for the logged in user, based on the modifier used.

Usage

{user:[meta_key]}

Meta Field Name Examples (non-exhaustive)

Any single user meta (including custom user meta) can be displayed with this merge tag by replacing [meta_key] with the specific meta_key for which you are wanting a value.

Below are a few examples of how this merge tag can be used. Please note: The user must be logged in when the entry is submitted.

:first_name

Displays the first name of the currently logged in user. {user:first_name}

:last_name

Displays the last name of the currently logged in user. {user:last_name}

:display_name

Displays the Display Name of the currently logged in user. {user:display_name}

:user_email

Displays the email of the currently logged in user. {user:user_email}

:user_login

Displays the user login of the currently logged in user. {user:user_login}

:ID

Displays the ID of the currently logged in user. {user:ID}

:preferred_contact_method

Displays the value of user meta with custom meta_key. {user:preferred_contact_method}