Debug WP-Cron with Trigger Scheduled Events
I’ve added a new plugin to the directory called Trigger Scheduled Events, which does pretty much what it says on the tin. With it, you can view a list of all events scheduled by WP-Cron and run any of...
View ArticleClean up a bloated WordPress comment tables
Spam comments are the worst. Even with Akismet active to prevent them from appearing on your site, they can still cause problems. That’s because the comment still gets stored and Akismet creates...
View ArticleWordPress Plugin: Override Comment Deadline
Today I’m pleased to release a discussion-focused plugin to the directory, called Override Comment Deadline. Now you can have “Automatically Close Comments” enabled in your discussion settings to limit...
View ArticleNew Plugin: Custom Related Products for WooCommerce
I don’t think I’ve ever built a WooCommerce site where the client didn’t ask: “How do I pick which related products to display.” The answer has always been “You don’t; the system randomly picks...
View ArticleAdd async, defer, or other attributes to enqueued WordPress scripts
Sometimes it’s useful to add the async or defer attributes to your script calls in order to prevent that script from blocking the rest of your page from rendering. This is particularly useful with...
View ArticleEnable the YouTube iframe API for embedded videos
By default, videos embedded in WordPress posts are missing the enablejsapi querystring parameter that allows YouTube’s iframe API to interact with them. Fortunately you can filter the results of...
View ArticleFind the top level parent term
Here’s a quick helper function to find the top level ancestor of a given term. If you like to organize your categories in nested fashion, this function will find the very top level parent no matter how...
View ArticleRemove the tag cloud from the taxonomy edit screen
In the WordPress admin taxonomy edit screen, Tags and any hierarchical custom taxonomies include a tag cloud of “Popular Items” in the left column above the Add Term form. I find this feature useless...
View ArticleSite search tracking for WordPress with Google Analytics
With just a little setup, Google analytics can track keywords and phrases entered into your WordPress site’s search box. By default, your search results will show up as regular page views which look...
View ArticleDisable post revisions for all post types
WordPress has a handy post revision feature which saves earlier states of a post as you make edits. Not everyone wants or needs this feature, however, and it’s handy to be able to turn it off. Plugins...
View Article