Appearance
User Field
Displays a specific field from the current logged-in WordPress user. Renders as inline text.
Properties
| Property | Type | Default | Description |
|---|---|---|---|
| field | select | 'display_name' | The user field to display. |
Available Fields
| Value | Description |
|---|---|
display_name | The user's display name |
user_email | The user's email address |
user_login | The username |
ID | The user's numeric ID |
user_registered | The registration date |
Example
Show a welcome message by combining with a Text widget:
[Text] Welcome back,
[User Field] field: display_nameDisplay the user's email on a profile page:
field: user_emailTips
- 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.