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.
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.
This sample code is an example of how to take a list of values from a database table and use it to generate a dropdown select option in your registration form. You can get as involved or as simple as need be from this framework.
I will be giving an example that will take a list of names from a database table so that the user can select their name from the list. To make it a little more interesting (and functional), I will update the table when the user registers so that name will not show in the registration form in the future. Continue Reading →
Note: this example predates the introduction of the MailChimp Integration extension. I recommend that you use that extension instead as it is far easier to use and also utilizes the latest MailChimp API (version 3.0).
Here is an example of a simple integrating MailChimp with the WP-Members registration process. This could be modified to suit similar integrations as long as there is an API to hook into. Continue Reading →