The WordPress Core is sacred. Not pretty, but sacred. So don't touch it. Ever.

filter


Thoughts on Filtering by Time

Posted on June 30th, by Eric in Plugin Development, WordPress. 3 comments

Filtering WordPress WP_Query results by time. This article will look at different approaches to solve this problem.



Rethinking Hook Declaration

Posted on December 6th, by Eric in Opinion, WordPress. 5 comments

Actions and filters are the core of WordPress. They allow us plugin and theme developers to hook into (nearly) every corner of our beloved CMS and customize it. I have some concerns about the way they are declared, though. Today, I will tell you what bothers me and try to suggest a solution. I’d like to hear your thoughts about it, too.



Allow Site Admins to Manage Users

Posted on November 22nd, by Eric in Plugin Development, WordPress. 2 comments

In a WordPress multisite environment, there are site admins and network admins. The latter has all available capabilities, the former is restricted. Basically, site admins are only allowed to maintain their own sites. When it comes to users, this can be a nuisance. Learn how to allow site admins to view, edit and delete all users in a multisite blog.



Shortcode in Text Widgets

Posted on November 19th, by Eric in Plugin Development. No Comments

Have you ever felt the need to use a shortcode in the default WordPress text widget? Learn how to enable it in a single line of code. For the curious: Take a glimpse at how WordPress filters work.



Implement a Content Parser

Posted on November 15th, by Eric in Plugin Development, WordPress. No Comments

For complex substitutions, the WordPress Shortcode API is fine. But when you’d like provide some kind of simple template mechanism, shortcodes are not the best choice. Today, we’ll write our own content parser.