Tag: filters
-
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…
-
Handling form layout when using a builder plugin
Builder plugins (and themes that use them) such as SiteOrigin, Elegant Builder, Divi, and others, have become more popular. Without beating a topic that has already been beat to death in the WordPress developer community, let me just say that my position on it is conflicted. First, I generally agree with the assessment provided by…
-
Change the WordPress new user notification using the wp_mail filter
I have shown in the past how to change the WordPress new user notification by rewriting the wp_new_user_notification() function, which is a pluggable function. But the transition from WP 4.2 to 4.3 showed why even pluggable functions can be problematic. So here is a way to do it with a filter that almost no one…