WP-Members has a number of shortcodes that you can use to make the plugin even more flexible. This is a general list of the shortcodes and their use. For more detail, I would recommend you visit the WP-Members official User Guide section on shortcodes. This page will link to more detail on each shortcode the plugin offers and explain how they are to be used.
While you are there, I would suggest that you sign up for the premium support membership. At $59, it is a good value and this price gets you access to the support forum, priority email support, a code snippet library of customizations, and access to exclusive plugin extensions such as registration blacklist, user tracking, PayPal subscriptions, and more.
These page shortcodes run various optional pages for the plugin. While they are intended to be used as stand-alone pages, in some cases they can be used with other content and can also function in conjunction with the login status shortcodes.
- [wpmem_profile] – creates a page where a logged in user can update their registration information or change a password, and a logged out user can reset a forgotten password.
- [wpmem_form register] – creates a page specifically for registration.
- [wpmem_form login] – creates a page specifically for logging in.
- [wpmem_form user_edit] – creates just the user registration data update portion of the user-profile shortcode.
- [wpmem_form password] – creates just the password change (user logged in) and password reset (user not logged in) portion of the user-profile shortcode.
For more information on the page shortcodes with specific examples, visit the plugin’s User Guide section on Page Shortcodes.
Login Status Shortcodes:
The status shortcodes determine whether content should be shown based on the user’s login status. NOTE: these cannot be used on content that is already blocked by WP-Members (i.e. you cannot have a page set to be blocked and then use the logged out status shortcode)
- [wpmem_logged_in]Content to display if user is logged in[/wpmem_logged_in]
- [wpmem_logged_out]Content to display if user is logged out[/wpmem_logged_out]
For more information on the login status shortcodes with specific examples, visit the plugin’s User Guide section on Login Status Shortcodes.
There is a shortcode that will allow you to display registration data to the user. This allows you to display the value for any of the registration fields for the specific user that is logged in. For example you could use this to display a welcome, first_name message:
- Hello [wpmem_field first_name]. Welcome to the site.
For more information on the field shortcodes with specific examples, visit the plugin’s User Guide section on Field Shortcodes.
Shortcodes for email messages:
The shortcodes that are used in the email content are used specifically in the email content dialogs (found in the plugin’s emails tab). These shortcodes allow you to determine certain content that can be added to emails to the user upon registration or to the admin notifying them of a new registration.
- [blogname] – the Site Title you have specified under Settings > General
- [reglink] – a link to the page the user registered on (useful to return a user directly to the content they registered to view)
- [members-area] – the members area where, among other things, the user can change their random password to whatever they want
These shortcodes are only available in the admin notification email:
- [email] – the user’s email address
- [fields] – a list of any of the registration fields
- [user-ip] – the user’s IP address when they registered
- [activate-user] -a link to the user profile page so they can be activated (used if moderating registration)
For more information on the email shortcodes with specific examples, visit the plugin’s User Guide section on Email Shortcodes.