LIMITED TIME DEAL

NOV 27TH – DEC 3RD

🔥 BLACK FRIDAY SALE 🔥

GET ADD-ONS BUNDLE WITH 34% OFF

GET ADD-ONS BUNDLE – FROM ONLY $39

DISCOUNT CODE APPLIED AUTOMATICALLY

User data

Vladimir Anokhin

[su_user field="display_name" user_id="2"]

Description

This shortcode allows you to display user data.

Options

Option namePossible valuesDefault value
field
User data field name. Custom meta field names are also allowed.
first_name (First Name)
last_name (Last Name)
nickname (Nickname)
description (Description)
locale (Locale)
display_name (Display name)
ID (ID)
user_login (Login)
user_nicename (Nice name)
user_email (Email)
user_url (URL)
user_registered (Registered)
user_activation_key (Activation key)
user_status (Status)
display_name
default
This text will be shown if data is not found
Any text value– none –
before
This content will be shown before the value
Any text value– none –
after
This content will be shown after the value
Any text value– none –
user_id
You can specify custom user ID. Leave this field empty to use an ID of the current user
Any text value– none –
filter
You can apply custom filter to the retrieved value. Enter here function name. Your function must accept one argument and return modified value. Name of your function must include word filter. Example function:
function my_custom_filter( $value ) {return 'Value is: ' . $value;}
Any text value– none –
Helpful?
🤝 Thank you!