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.…

  • 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…

  • Creating menus for different user roles

    We’ve had some different tutorials on displaying menus based on login status – showing a different menu for logged in users vs. non-users.  I also put together a code snippet and a plugin extension to automate this process.  There’s even a tutorial on how to remove menu items based on login status. This tutorial is an…