
User details DKI
Display the user's details using a simple shortcode
If-So allows you to dynamically insert the user’s details using a simple shortcode. Users have to be logged-in in order for the shortcode to work.
The following details can be displayed:
- User Name
- First Name
- Last Name
- Full Name
How to display the user’s details using a shortcode?
Use the shortcodes below to dynamically display each of the user details:
User Name:
[ifso_user_details]
First Name:
[ifso_user_details show="firstName"]
Last Name:
[ifso_user_details show="lastName"]
Full Name:
[ifso_user_details show="fullName"]
Email:
[ifso_user_details show="email"]
Setting a fallback (default)
Setting a fallback, for cases that the user details are blank or unknown, can be done by simply adding the parameter default=”value” to the shortcode.
[ifso_user_details show="firstName" default="friend"]
Shortcode Generator
Use the shortcode generator below to generate your User details DKI shortcode:
User Details – DKI Generator
Displays if the user is not logged in or the field is not available