Web Design & Hosting Blogs
How Filter Works In Wordpress web-design-and-hosting Blog
How Filter Works In Wordpress Blog
Filter Hooks are very powerful features of WordPress that provide huge amount of flexibility for modifying WordPress, including custom themes and plugins. In this tutorial, I'm just showing a simple example that demonstrates what a filter hook does. There are four core functions that use when working with filters:
add_filter(): Used for adding new custom filter.
remove_filter(): used for removing an already registered filter.
apply_filters(): runs the provided data through the specified filter.
has_filter(): checks whether a specific filter has been registered or not.