Created
July 13, 2014 03:05
-
-
Save ckpicker/82834e4bc8e77434a346 to your computer and use it in GitHub Desktop.
Events Calendar 3.6 // Add 'nofollow' attribute to Event Website URL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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