Tag: demo
-
Using Anonymous Functions for Filters and Actions
The more customization that you do when building a WordPress site, the more you will find that you have a lot of functions hooked to actions and filters. Sometimes these functions might be quite simple, returning just a single line of text or replacing a single word. Is there an easy way to make this…
-
Add current password confirmation to change password form
Recently, a question came up about adding an additional field to the change password form for the user to confirm their current password as a requirement of changing the password. Adding the extra field is very easy with a filter. The trickier part is to handle validating the new form input and providing an error message.…
-
Reset password with just email
NOTE: if you are using version 2.9+, there is a new set of code snippets using some new filter hooks that make this process easier. One of the requests I get most often is how can I change the plugin to have the password reset only require the user to give their email address. This…
-
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…