Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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