Created
February 23, 2013 15:13
-
-
Save paulund/5020090 to your computer and use it in GitHub Desktop.
Make Wordpress Bookmarks no-follow
This file contains hidden or 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
function no_follow( $links ) { | |
foreach($links as $link) { | |
$link->link_rel .= ' nofollow'; | |
$link->link_rel = trim($link->link_rel); | |
} | |
return $links; | |
} | |
add_filter('get_bookmarks', 'no_follow'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment