Tag: tips
-
Why you should NOT use do_shortcode()
DO NOT use do_shortcode() to run a shortcode! If you have to ask yourself “why?” when reading that, then this post is for you!
-
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…
-
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…
-
Integrating with Easy Digital Downloads
Easy Digital Downloads is an incredibly popular plugin that allows you to create a digital product store using WordPress. You can require users to be logged in to checkout in EDD, but that does not restrict a download link from being used when the user is not logged in. Restrictions can be put on the…