• I am using social media widget my email contact. I tried using Email Address Encoder with it, but am unable to figure out how to get the two to talk to each other. I think I need to add this, somewhere:

    add_filter( 'widget_social-widget', 'eae_encode_emails' );

    …but I don’t know where.

    I’ve also tried insert code into the widget itself, e.g.

    mailto:<?php echo antispambot(get_the_author_email()); ?>

    or

    mailto:<?php echo eae_encode_str('name@domain.com'); ?>

    But I’m clearly doing something wrong. I only have to protect one email address in two places, so if it is possible to do so without the overhead of a plugin that would be the best.

    http://wordpress.org/plugins/social-media-widget/

  • The topic ‘Protecting email address from spam’ is closed to new replies.