Skip to content

Instantly share code, notes, and snippets.

@paulund
Created February 23, 2013 15:13
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 paulund/5020090 to your computer and use it in GitHub Desktop.
Save paulund/5020090 to your computer and use it in GitHub Desktop.
Make Wordpress Bookmarks no-follow
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