WordPress.org

Forums

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

  1. cdragin
    Member
    Posted 1 year 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()); ?>

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Social Media Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic