Category: Filters
-
Change date display format in PayPal extension
By default, the date in the PayPal extension displays as MM/DD/YYYY. Here is a filter for the extension to change that display to whatever date format is set in your WP settings.
-
Force user to update password from randomly set password
This process is similar to the customization Redirect User On First Login. The difference here is that this forces the user to change their password from the randomly set password prior to being able to continue using the site. This would occur for initial password sent when registering as well as if a forgotten password…
-
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…
-
Creating an optgroup tag in a dropdown list
Here is a slightly more advanced example of using the wpmem_register_form_rows filter to modify a form input element. In this case, we will take a regular dropdown select field and add the optgroup label tag to sections of it. Note: for best results in understanding this customization, it is best to create a test field…
-
Make MailChimp subscribe field a hidden field in the WP-Members registration form
Suppose you are using the WP-Members registration form essentially as an opt-in to your MailChimp list. Essentially, you want anyone who fills out the form to be added to the MailChimp opt-in process. This requires you to have the MailChimp extension installed and a subscribe field set up and configured. This filter will take that field and…