Tag: actions
-
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…
-
Send new user activation link with manual admin approval
This post describes a very similar process to what is described in the tutorial titled “Send new user an activation link in the new registration email.” The twist on this version is that this will send the user an email requesting that they confirm their email address, then it will send the admin a notification…
-
Do not modify plugin files
This is an important best practice – never, ever modify plugin files directly. Rule 1: there is never a good reason to do this. Rule 2: refer to rule 1.
-
How to hide posts completely
There are times when a site operator may wish to completely hide certain posts – either all posts that are blocked, posts of a certain category, or other possibilities. While the main process that the plugin operates on is to show titles and excerpts on summary pages to drive users to conversion (registration), that is…
-
Redirect Blocked Content to a Log In Page
By default, the plugin automatically places a login form in place of blocked content if the user is not logged in. But sometimes plugin users prefer to redirect a user to a log in page when they attempt to access a page or post with blocked content. This can usually be accomplished with a custom…