Suppose you want to block any post that is in a certain category. This example shows you how to do that using the wpmem_block filter hook. Continue Reading →
Blog
Redirect a user on first login
Suppose you have some information you want to direct first time users to, such as a rules page, or a list of certain posts, etc. You would like to do that the first time they login as a new user. You can do that with the magic of the wpmem_login_filter.
Continue Reading →Sidebar login status
The sidebar on test.rocketgeek.com is customized with some relatively simple filter hooks in the plugin. Adding the avatar is similar to the method described in this post. Read on for the exact script that I am using here. Continue Reading →
Create a rule for updated passwords to meet certain requirements
Here is a tutorial that will walk you through creating a custom password requirement. The example used requires that passwords contain at least 2 uppercase characters, 2 lowercase, 2 numbers, and 2 special characters; with the a length of at least 8 characters.
From the framework of the example, you can adjust these variables as needed/desired.
Show optional form fields only on user update
Suppose you have some additional form fields that are not required for registration and you don’t want to show those as part of the registration process; but you would like them to be included when a user updates their registration info. Here is an elegant way of doing that without resorting so hiding the fields with CSS. Continue Reading →