Skip to content

Instantly share code, notes, and snippets.

@ckpicker
Created July 13, 2014 03:05
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 ckpicker/82834e4bc8e77434a346 to your computer and use it in GitHub Desktop.
Save ckpicker/82834e4bc8e77434a346 to your computer and use it in GitHub Desktop.
Events Calendar 3.6 // Add 'nofollow' attribute to Event Website URL
add_filter( 'tribe_get_event_website_link', 'add_no_follow_event_website', 10, 2);
function add_no_follow_event_website( $html ) {
//Strip out HTML
$url = strip_tags( $html );
//Add nofollow attribute
return sprintf( '<a href="%1$s" rel="nofollow" target="_self">%1$s</a>', $url );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment