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 →
wpmem_post_register_data
Restrict content by user level
I have written code snippets before on how to restrict content by user level, but that particular code snippet is based on using categories as the user levels, with higher level users still being able to access lower level content. For example, Silver, Gold, and Platinum level users having access or not to categories of the same name.
But what if you have content that you need to block by level that is not necessarily in a category? Or what if you are using pages that need the same level of restriction.
Here is a code snippet that will allow you to assign a “level” to any content – post or page, and then assign a user level for the users. This example provides a working code snippet for applying a series of progressive levels (higher level users have access to lower level content). The example begins with three generically named levels, these can be renamed and expanded or contracted as needed.Continue Reading →
Use an invitation code with the PayPal subscription extension
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 →
Add a first name greeting to the new registration email
As much as I try to make the plugin as flexible as possible with a framework that includes lots of hooks for customization, every once in awhile a question pops up that forces me to think outside the box, so to speak. Case in point, I recently received a question in the forum about putting a first name greeting into the body of the welcome email that goes to a user upon new registration. Seemingly intuitive and simple, that particular field is not readily available to the email function. BUT… have no fear, there is a very simple customization that makes it (and other fields) available to the email filter. 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.