This tutorial and code is an example of capturing user data with custom hidden fields. While the possibilities for how this can be used in customizing your application is very broad, this example will focus on capturing specific data about where a user registered and using that information to assign a custom user level. Continue Reading →
I’ve shown other code snippets for similar things – password validation at registration and having a password meet specific criteria. However, the password requirements example was geared toward a setup that was requiring this when a user changes their password (they were not allowing it to be set at registration).
So here is an example that combines the two of these elements at registration. Continue Reading →
When running the PayPal subscription extension, you might have some users you want to give a free account to. Or you might want to offer a discount to users with a specific code. Here is are some code snippets that will allow you to validate a promotion code in the registration form and if it is valid, either bypass the PayPal process (for a free subscription) or apply a discount. Continue Reading →
One really fun thing about developing, maintaining, and supporting WP-Members over the years is putting together unique customizations and code snippets based on user requests that I never thought of. It shows how truly versatile the plugin is and that there is a very diverse user base.
This particular snippet comes from a user request to essentially create an email whitelist for registration, thus only allowing registration if the user’s email account is from a certain domain. This can be used in a number of different scenarios. One particular use would be for someone maintaining content for specific business clients and you only want users from those specific client domains to be able to register. Continue Reading →
With both the general plugin and the various extensions, there are several columns that you may wish to add to the User Admin Panel. In my user panel, I like to see the date a user registered, their last login, and when their subscription expires. These custom columns involve data that is native to WordPress (user registered), from the User Tracking Extension (last login), and the PayPal Subscription Extension (expires).
This tutorial will show you some examples that you can use, but it can be easily adapted to other custom columns you might want to add as well.
Continue Reading →