Documentation

gwp_user

The gwp_user merge tag allows for the dynamic retrieval of user information based on the current user’s properties.

Functionality

This merge tag can extract various user properties, such as username, email, and more, directly into your forms or notifications. It ensures sensitive information, like passwords, is handled securely by preventing such data from being displayed.

It is similar to the Gravity Forms {user} merge tag, but {gwp_user} allows using additional merge tag modifiers, making it more powerful.

Usage

To use the gwp_user merge tag, specify the desired user property in the tag itself, followed by any modifiers if needed. The basic syntax is as follows:

{gwp_user:property}

Where property is the user attribute you wish to display.

Supported User Properties

  • User ID
  • User login
  • User email
  • Display name
  • And many more, excluding the user password for security reasons.

Modifiers

Modifiers can be appended to further manipulate the output, such as sanitizing text or changing the format. These are specified after the property, separated by a colon:

{gwp_user:property:modifier}

Advanced Merge Tagsv1.4

To use the functionalities described in this documentation, you'll need to get the GravityWP - Advanced Merge Tags add-on.

Read more