I would like to make sure no email address is published in plain. So i developed a plugin that replace all email addresses by a spambot-safe alternative.
But some users put their email address in their blog header, outside the post loop. How can i capture and filter that?
This works:
add_filter('the_content', array(&$this,"pep_replace"));
add_filter('the_excerpt', array(&$this,"pep_replace_excerpt"));
add_filter('the_comments', array(&$this,"pep_replace"));
This does not (it does not capture the email address i've added in my test theme header.php file).
add_filter('template', array(&$this,"pep_replace"));
add_filter('wp_head', array(&$this,"pep_replace"));
add_filter('shutdown', array(&$this,"pep_replace"));
I'm digging into the hook documentation, but i'm out of ideas on what could be the right filter hook. Thank you for your time.