Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author pixeline

    (@pixeline)

    It parses the content inside the wysiwyg content, title, excerpt and widgets. It would be too costly resource-wise to filter the output html code not in the database, so for emails inserted in theme files, you can use the provided function :

    echo safe_email('you@domain.com');

    Thread Starter Adam

    (@panhead)

    Seems like it really isn’t possible to filter either within the <body> tag or within all custom fields. I’ve seen this with other plugins and non-Plugin (PHP-only) solutions. That’s really too bad that it isn’t possible to have just a plugin or one PHP function that would filter an entire page and protect all email addresses.

    Thanks for your reply!

    Plugin Author pixeline

    (@pixeline)

    It is possible, using php’s ob_handler() functions. But that would mess up with so many wordpress plugins that it’s really not advised. I did some tryouts for this very plugin and it created havocs on my test site, especially using caching plugins (which are very popular). So you should really just use the custom function on your theme files. It’s not really that big of a deal compared to the protection this plugin gives you – for free.

    Thread Starter Adam

    (@panhead)

    This is good protection for free. Thank you for that!

    My trouble is that clients tend to enter email addresses in the main WP Editor as well as some custom fields that I’ve created. Many clients want their email addresses in plain sight on a website, and not necessarily to be contacted through a form. It’s annoying. 🙂

    Plugin Author pixeline

    (@pixeline)

    I never thought about filtering custom field. I’ll see if that’s possible (i guess it is).

    Did you know you can desactivate the WP Theme Editor?
    Put this line in your wp-config.php file:

    define( 'DISALLOW_FILE_EDIT', true );

    You shouldn’t let customers touch that in any case IMHO.

    Thread Starter Adam

    (@panhead)

    I deactivate the theme editor with every site. I was referring to the editor which is output with <?php the_content(); ?>. Thanks for the tip!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Does this plugin filter just 'the_content'? Or, the entire HTML?’ is closed to new replies.