Skip to content

Instantly share code, notes, and snippets.

@codearachnid
Created November 15, 2022 15:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codearachnid/b6a53c9a26208c2b554c5b5ba2218525 to your computer and use it in GitHub Desktop.
Save codearachnid/b6a53c9a26208c2b554c5b5ba2218525 to your computer and use it in GitHub Desktop.
Turn the WordPress: The Events Calendar plugin obfuscated organizer's email address into a clickable mailto link
jQuery(document).ready(function($){
$('.tribe-organizer-email').each(function(i){
$email = $.trim( $(this).text() );
if( !$(this).has( "a" ).length ){
$(this).html('<a href="mailto:' + $email + '">' + $email + '</a>');
}
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment