This shortcode allows you to display user data.

Vladimir Anokhin
[su_user field="display_name" user_id="2"]
Option name Possible values Default value
field
User data field name
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. Example function:

function my_custom_filter( $value ) {
	return 'Value is: ' . $value;
}
Any text value

none