WordPress Registration Form Plugin (CMREG) - Shortcodes - Display User Data in WP Menu
Display User Data in WP Menu
Since the version 3.5.7 of the WordPress Registration Form plugin, it is possible to use shortcodes for displaying user data in the site menu section.
Shortcodes
The following shortcodes are available:
- {{user_name}}
- {{user_first_name}}
- {{user_last_name}}
- {{user_nick_name}}
- {{user_display_name}}
- {{user_email}}
They relate to the following fields in the user profile:
Example
Let's add a personalized welcome phrase with the user display name to the navigation menu:
Result on the front-end:
TIP: Show To Logged-in Users Only
You can use our Site Access Restriction plugin for controlling the menu items visibility. This way you can show the personalized phrase only to logged-in users.
Learn more: Site Access Restriction (SAR) - Use Case - How to Control Your Site Menus By the User Role and Type
More information about the WordPress Registration Form Plugin Other WordPress products can be found at CreativeMinds WordPress Store |
|
Let us know how we can Improve this Product Documentation Page To open a Support Ticket visit our support center |