I’m trying to understand some of the function in WordPress, but I can’t get my head around what apply_filters(…) actually does.
Is someone able to clear this up for me with a few examples?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
apply_filters($tag, $value)passes the ‘value’ argument to each of the functions ‘hooked’ (usingadd_filter) into the specified filter ‘tag’. Each function performs some processing on the value and returns a modified value to be passed to the next function in the sequence.For example, by default (in WordPress 2.9) the
the_contentfilter passes the value through the following sequence of functions: