The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
no follow on Login ...
 
Share:
Notifications
Clear all

[Solved] no follow on Login links?

3 Posts
2 Users
0 Likes
488 Views
Posts: 4
Topic starter
(@lukem)
Active Member
Joined: 3 years ago

How would I go about adding rel=“nofollow” to the Login links in the comments on my posts?

2 Replies
Asti
Posts: 7119
 Asti
Support
(@asti)
Illustrious Member
Joined: 6 years ago

@lukem,

Please use the following hook-code:

add_filter('wpdiscuz_login_link',function($link){
    $link = str_replace('<a href="', '<a rel="nofollow" href="', $link);
    return $link;
});

Put it in the active theme functions.php file.

Posts: 4
Topic starter
(@lukem)
Active Member
Joined: 3 years ago

Thanks!

Share: