[oceanwp_current_user] Shortcode

This shortcode allows you to display the current user info where you want:

[oceanwp_current_user]

Here is a list of the different parameters:

  • text: If you want to add a custom text, default is Welcome back.
  • display: It's the current user info you want to display, default is display_name.

List of the user info you can display:

  • user_login: Displays the username.
  • user_email: Displays the user email.
  • user_firstname: Displays the user first name.
  • user_lastname: Displays the user last name.

For example, if you want to change the text and display the user email:

[oceanwp_current_user text="Your email:" display="user_email"]
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.