Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey @pyramusnl,

    Thanks for reporting this. I’m curious, does anything improve for you if, instead of the esc_html() call there altogether, you add code like the following to your theme’s functions.php file?

    add_filter( 'tribe_get_organizer_email', 'tribe_support_7394344' );
    
    function tribe_support_7394344( $output ) {
        $output = tribe_get_event_meta( tribe_get_organizer_id( get_the_ID() ), '_OrganizerEmail', true );
        return $output;
    }

    Let me know if this helps at all!

    Thanks,
    George

    Thread Starter pyramusnl

    (@pyramusnl)

    hey there george,

    thanks for that! your filter does fix the issue as well. so i will use this instead of my own change in the source code to make it easier staying in sync with forthcoming updates.

    i did rewrite the filter a bit more lean:

    function tribe_event_email_link() {
    	return tribe_get_event_meta( tribe_get_organizer_id( get_the_ID() ), '_OrganizerEmail', true );
    }
    add_filter( 'tribe_get_organizer_email', 'tribe_event_email_link' );

    or was there a specific reason for adding the $output var?

    thanks,

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘BUG: email address html code printed’ is closed to new replies.