WP-Members has its own built-in form field validation for things like usernames, email, and required fields. But what if you need to validate other elements, such as testing to see if an entered value is a number? Yes, the plugin framework allows for you to extend the form field validation to whatever you need.
Tips and Tricks
Changing the activation link to a single click process
When moderating registration and sending admin notification emails, WP-Members has a shortcode in the email that allows you to click through to that particular user’s profile to activate them. But what if you want the link itself to activate the user? This tutorial will show you how to set up a process to make that a single click process. Continue Reading →
Blocking custom post types
Note: As of WP-Members 3.0, you can add custom post types to the plugin’s main blocking options. See the options documentation section on Custom Post Types.
With explosion of custom post types in WordPress 3.0, the WordPress world has changed somewhat from what it was when WP-Members was first developed. If you have a theme or site that uses custom post types, you may find that you need to make some adjustments to accommodate what content you would like to be blocked.
Create different styles for “success” and “error” messages
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 →
Configuring auto login at registration
This tutorial will show you how to automatically log in a user when they successfully complete the registration form.
Continue Reading →