[memb_wp_user]

This Applies to
OTHER DOCS Available

Summary

This shortcode displays the content of a WordPress user or user meta field.

Shortcode Examples

[memb_wp_user fieldname="display_name"]
[memb_wp_user fieldname="id"]
[memb_wp_user fieldname="user_email"]
[memb_wp_user fieldname="user_firstname"]
[memb_wp_user fieldname="user_lastname"]
[memb_wp_user fieldname="user_login"]

Shortcode Parameters​

capture: A comma separated list of destinations to send the output of the shortcode to. (?)
txtfmt: A comma delimited list of text processing functions that will be applied on the output. (?)
fieldname: Captures the output of the shortcode into the fieldname.  A few examples are listed below:
display_name: Shows the logged in user’s display name.
id: Shows the logged in user’s ID number.
user_email: Shows the logged in user’s email address.
user_firstname: Displays the logged in user’s first name.
user_lastname: Displays the logged in user’s last name.
user_login: Displays the logged in user’s login name.

Shortcode Attributes

Conditional: No (?)
Nestable: No (?)
Capturable: Yes (?)
Accepts Formatting: Yes (?)

Additional Information

If you use this shortcode with no parameters it displays the message “invalid fieldname”.

  • Was this Helpful?
  • YesNo
9 ways to add more value to your membership site

[memb_wp_user]

This Applies To

Book a Call

Welcome to Memberium!

We are very excited for you to be part of our family. 

We would love to answer any questions that you have!

Please choose the best time for you to get in a call with us. 

For Technical Support, you can contact us at https://keap.memberium.com/support/ or Email us at support@memberium.com.