Welcome to the Treehouse Community
Looking to learn something new?
Martin Gibson6,581 Points
Why do filters exist?
After watching this video on filters it got me thinking about the purpose of filters. Like the purpose of a filter is to provide a way for someone to edit something, whether it be in a plugin, theme or Wordpress itself. But why not instead of documenting filters, communicating filters and expecting users to know how to use a filter, why not just create a settings page? This seems far more practical. Am I missing something?
Shane Oliver19,950 Points
A filter is a the middle point between the browser and the server. When you call information from the server or pass to the server you may need to filter this data for various reasons. For example, requesting an API requires filtering before displaying the results in a meaningful way to users.