This is an idea that has been floated by a few users, which means there is probably a need for it. As is usually the case, I don’t like to make wholesale changes to the codebase that effects users in a way that requires them to make a change to accommodate an update. So I wouldn’t want to change the plugin to put in different classes, since users with a custom stylesheet would need to be paying attention when they update to accommodate the new classes in their stylesheet. But this is something that we can certainly do on the fly using the wpmem_msg_dialog filter. This article will show you how to do just that. Continue Reading →
Filters
Simple MailChimp merge field example
Note: as of WP-Members MailChimp Integration version 2.0, merge fields can be managed directly in the extension’s admin tab. This filter remains active and supported, but it is only generally needed for customizing the process if necessary rather than defining it.
This is an example of how to utilize the wpmem_mc_merge filter to add additional mail merge fields to sync with MailChimp. Continue Reading →
Add password and email confirmation to the registration process
NOTE: As of plugin version 2.9.3, password, password confirm, and email confirm fields are included in the plugin’s default fields. All you need to do is enable them. Everything described in this post is now integrated into the plugin.
Some users like to have a confirmation process in their registration. For example, having two email fields and comparing to make sure the user properly entered their email address. This code snippet will show you how you can quickly add this feature with the addition of some custom fields in your form.
Workaround for registration form layout issues
In some cases, you may find some strange wrapping with the default WP-Members registration form. While the best solution is to customize the CSS with a custom stylesheet for your site, there is also a quick workaround that can be applied. Continue Reading →
How to add multiple user levels by category
This post will demonstrate how to restrict content to users based on user levels. Content could be restricted by category, by tag, or by some other meta (such as a custom field).
This example will demonstrate “level” restriction by category, such as Silver, Gold, and Platinum categories. In this example, we will set up those levels so that the Gold level users have access to Gold & Silver, and Platinum level users have access to all of the content.