Apply_filters

Why on the codex for filters is everything shown as an argument in an apply_filters() function? Is apply_filters called automatically every time I use add_filter()?

For WordPress to know what filter to apply to and what to apply to it those arguments are needed.
It wouldn’t make much sense to say “to this hook add this function” without specifying both the hook and the function.

“add” is like saying “make this function available” and “apply” is like saying “use the function”

For WordPress, both are needed.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.