• Resolved bstritesky

    (@bstritesky)


    I am using Google Calendar Widget plugin to display a calendar on our website, and the calendar ID is an email address, but your plugin is obfuscating the email in the javascript code.

    Here’s where it obfuscates when it shouldn’t. Any tips for getting this resolved so I can keep using your fabulous plugin on my site?

    <script type="text/javascript" defer="defer">
    				ko_calendar.loadCalendarDefered('<Google API key>', 'widget-ko_calendar--1-widget_title', 'widget-ko_calendar--1-widget_events', 5, false, '[email protected]', '', '', '[STARTTIME - ][TITLE]');
    			</script>

    https://www.ads-software.com/plugins/email-address-encoder/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Till Krüss

    (@tillkruess)

    Removing the widget_text filter should do the trick:

    remove_filter( 'widget_text', 'eae_encode_emails', EAE_FILTER_PRIORITY );
    Thread Starter bstritesky

    (@bstritesky)

    I’m not quite following–where should I put this code?

    Plugin Author Till Krüss

    (@tillkruess)

    Easiest place would be a custom MU Plugin, or your themes functions.php.

    Thread Starter bstritesky

    (@bstritesky)

    I added that code to my child theme’s functions.php, without any success. Any ideas? https://redvillagechurch.com/, under Coming Events.

    Plugin Author Till Krüss

    (@tillkruess)

    Maybe it’s called to early, try calling remove_filter() later:

    add_action( 'wp_loaded', function() {
        remove_filter( 'widget_text', 'eae_encode_emails', EAE_FILTER_PRIORITY );
    } );
    Thread Starter bstritesky

    (@bstritesky)

    Hmm. That still didn’t address it. Thoughts on other options? I really like the plugin!

    Plugin Author Till Krüss

    (@tillkruess)

    I just installed the “Google Calendar Widget” plugin on a fresh WordPress 4.1 installation and activated the Email Address Encoder plugin and it works flawless. No extra code added or anything, so your setup/theme must doing something unusual. I recommend asking your WordPress developer to dig into it.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Email Address Encoder breaks Google Calendar Widget’ is closed to new replies.