Hi There guys,
I wanted to turn the META (organizer) email on a event to a live link. I found Barry’s GitHub suggestion on the net:
* Convert organizer emails into live "mailto:" links that users can click on.
*
* @param $email
* @return string
*/
function organizer_live_email_link( $email ) {
if ( ! is_email( $email ) ) return $email;
return '<a href="mailto:' . esc_attr( $email ) . '">' . esc_html( $email ) . '</a>';
}
add_filter( 'tribe_get_organizer_email', 'organizer_live_email_link' );
And this works fine on the single event Organizer Meta Email – however it also affects the ORGANIZER page.
Here is a link to a single event showing the now LIVE meta email link.
And here is how this code affects the Organizer page
The code seems to duplicate the email on the organizer page – I’ve ‘hacked’ about with it but I can’t resolve – Any suggestions on a fix please??
Thanks
Phil