Suppose you have the WP-Members plugin set up to leave pages unblocked. You have a single page that is set at the page level to be blocked, and you would like all children of this individual page to be blocked automatically without having to block each of them individually (or remember to do so). Here is a simple way to do that. Continue Reading →
Filters
Sidebar status highlight username
Suppose you want to highlight the user’s username in the sidebar status message. Here is an easy filter to do that. Continue Reading →
Removing items from the menu based on login status
Generally, menus are going to be filled with static items. A “set it and forget it” kind of thing. In those cases, there are some really good methods of setting up various menus to display based on a user’s login status (here and here).
But what if that’s the case? What if you have a menu that you will dynamically be adding content to and you just want one menu to do it all? This filter function might suit your needs.
Creating menus based on login status – alternate version
Over in this post, I described a method of displaying different menus to users based on their login status by setting up your theme to display the different menus. But isn’t there an easier way that doesn’t involve theme edits?
Yes. And I’m glad you asked that question.
This method is even easier and simply requires you to drop the included code snippet into your theme’s functions.php file. You will need to update the variable names in the snippet to reflect your menu names.
Add a separator line of text in the registration form
This is an example of how to add a line of text in your form, ideal for creating separation for sections of a form, or to add specific instructions. Continue Reading →