Tag: wpmem_pre_update_data
-
Generate Random User Display Name and Nickname
One thing I love about WP-Members is how versatile it is. Because of this it gets used in many applications that I did not really envision when I first released it in 2006. Recently, I had a support user ask about something that I am surprised has not come up before involving using alternate display names and/or…
-
Add a Date of Birth Field with Dropdown Selections for Month, Day, and Year
I have received a lot of requests in the past for how to add a set of dropdown selections for date and store it as a single user meta value. This is a great example of using the new wpmem_register_form_rows filter hook, a new hook in 2.9, because we can use a single field in the…
-
Email Admin When a User Updates Registration Data
Here’s a request I get from time to time – how can the admin receive email notification that a user updated their data, so I figured it is about time to put that together as a tutorial. This one should be fairly straight forward and can be used cut-and-paste for the general features. As usual,…
-
Custom form field validation: numeric fields
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.