Ready to get started?Download WordPress


Social Media Widget
Protecting email address from spam (1 post)

  1. cdragin
    Posted 6 months ago #

    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()); ?>


    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.



You must log in to post.

About this Plugin

About this Topic