Skip to content

User Field

Displays a specific field from the current logged-in WordPress user. Renders as inline text.

Properties

PropertyTypeDefaultDescription
fieldselect'display_name'The user field to display.

Available Fields

ValueDescription
display_nameThe user's display name
user_emailThe user's email address
user_loginThe username
IDThe user's numeric ID
user_registeredThe registration date

Example

Show a welcome message by combining with a Text widget:

[Text] Welcome back,
[User Field] field: display_name

Display the user's email on a profile page:

field: user_email

Tips

  • If the user is not logged in, the field renders as empty.
  • For more user fields (first name, last name, roles), use the expression functions current_user_name(), current_user_email(), etc., inside a Text widget.
  • Pair with User Avatar for a complete user info display.
  • On profile-type components, the full user data is also available as row.display_name, row.email, etc.