How would I go about adding rel=“nofollow” to the Login links in the comments on my posts?
Search
Close
AI Search
Classic Search
Notifications
Clear all
Oct 15, 2021 12:17 am
2 Replies
Oct 15, 2021 12:25 pm
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.
Oct 15, 2021 7:43 pm
Thanks!

