- Introduction to WordPress Plugin Development 101
- Plugin Development 101 – What Makes a Plugin?
- Plugin Development 101 – General Best Practices
- Plugin Development 101 – An Intro to Filters
- Plugin Development 101 – Registering a Custom Post Type
- Plugin Development 101 – Intro to Short Codes
- Plugin Development 101 – Intro to Loading Scripts and Styles
- Plugin Development 101 – Introduction to Adding Dashboard Menus
In this part of Plugin Development 101 we take a look at one of the most important tools plugin developers use every day: filters. The presence of filters throughout WordPress are one of the elements that make plugin development possible, so having a good understanding of what they are and how they work is extremely important.
I have to apologize ahead of time for the lesser-than-optimal audio quality on the video.
Filters are a mechanism in WordPress that allow data to be manipulated before it is used or displayed. For example, a filter would allow the content of a post or page to be modified before it is displayed to the reader, or for the variables passed to a posts query to be altered before the posts are retrieved from the database.
I will leave the extended explanation of filters to the video, but here are a few links that help to illustrate what a filter is and how to use them: