[wp-hackers] Hiding email address output

Peter Westwood peter.westwood at ftwr.co.uk
Mon Jan 24 10:06:42 UTC 2011


On 24 Jan 2011, at 09:47, Robert Lusby wrote:

> Hello,
> 
> Looking at automatically hiding email addresses across posts/pages within
> our WordPress install.
> 
> We have the function below, (kindly borrowed from Manakor). What would be
> the best hook/filter to call this function?
> 
> Obviously it needs to run against every bit of content outputted:
> "tep_rewrite_email($content)".

You want to hook into at least the following filters:

the_content, comment_text, the_excerpt, the_title, comment_excerpt

Plus probably the _rss versions where they exist.

Looking at the add_filter calls for the core formatting functions in wp-includes/default-filters.php would be a good idea

Cheers
-- 
Peter Westwood
http://blog.ftwr.co.uk | http://westi.wordpress.com
C53C F8FC 8796 8508 88D6 C950 54F4 5DCD A834 01C5



More information about the wp-hackers mailing list