[wp-hackers] Adding Filters

Andrew Nacin anacin at gwhatchet.com
Sat Nov 21 02:41:46 UTC 2009

> add_filter ('get_post_custom_values', 'anti_email_spam', 16);

You should read through the Plugin API in the Codex:

You don't add a filter to a function; you add it to an API hook that is
built into the WordPress core. the_content() happens to be a function, but
it is also the name of a hook that filters the content returned by that
function, and that's what you're applying the filter to. (
it also is a filter in a few other spots.)

More information about the wp-hackers mailing list