To replace
nofollow
withnofollow external _blank
Put this code in your theme’s functions.php
file to replace text as required.
function wpse_60668_relnofollow($text) {
$return = str_replace('nofollow', 'external nofollow _blank', $text);
return $return;
}
add_filter('get_comment_author_link', 'wpse_60668_relnofollow'); //this'll change author link
add_filter('comment_text', 'wpse_60668_relnofollow'); //This'll change the content
Related Posts:
- How to auto-approve internal pingbacks?
- Number of External Links in Comments – Moderation Option
- Remove link preview in discussion dashboard
- Add delete, approve, spam Links to Comments
- How to create a link to jump to “Leave a comment” part?
- Changing the comments link produced by the get_comments_link() and get_comments_pagenum_link() functions
- cancel reply link results in 404 error
- I wish to remove, disable or hide the comment authors’ links to their sites from my home page
- get_comment_author_link not working properly
- Is there a way to link to the BOTTOM of the comments on a wordpress page?
- Disable Link to Post from Showing Up in Post’s Comments?
- comments reply script not working
- What should I do to make generated avatars different for anonymous comments?
- Check If comment author is registered
- How do I set up real anonymous posting in bbpress forums? [closed]
- How do I turn off wordpress comments ability to capture a users ip address?
- Success message in comment form
- How to allow the reply link to remain on the comment form after I have reached my 10 nested comment limit?
- How to remove commenters ability to add hyperlinks to comments?
- Is there a hook for comment author link?
- Exclude internal links from comment moderation?
- Change the HTML output of comments
- Can’t add default comments to custom post type
- Upload images with comment
- Prevent Contributor to show comment list
- where to modify get_comment_author_link()?
- Change language of comments template
- Why Allow Script Commands in Comments?
- How to enable comments options?
- WordPress comment count to include attachment comments
- How to no follow the paginated comments
- Remove “Comments are closed” Notice from Custom Post Type template
- Comment count wrong with orphaned comments
- Comment form problem with comment_author_url and HTML5 input placeholders
- Get comment content by comment ID
- Pings and replies
- Retrieve comments from current post using SQL
- Comment_Reply_Link Not Showing?
- Display recent comments with gravatar and excerpts?
- Is comment metadata included in the export file?
- How to remove comment link title attribute?
- Display the number of unseen comments on a page since the user last visit
- Log in link not showing, Comment Issue
- WordPress comments on users profile
- How to call my custom WordPress Comment form without getting the comments?
- How to moderate (manually approve) comments of a specific (registered) User
- How unrequire comment text in wordpress post
- How to limit comment author to one comment per post
- API Hook for After Commenting (for sharing on Facebook)
- Make WordPress process admin group comments using $allowedtags
- Can comments by a logged-in user be displayed at the top?
- Placed on + only date (not time)
- comment reply by email
- Incorrect redirection after commenting on custom type
- How to limit comment indentations to one level?
- WordPress for questions and responses website
- How can get comment id from comment link?
- How to Add text to the start of all comment?
- How to get comments other than using wp_list_comments?
- How many members have made comments approved for an article?
- How to get a value from comment meta
- reCaptcha doesnt appear in comment (manual or plugin)
- Remove Comment Author Link only for subscribers
- Add a Comment on/off option in Screen Options for Comments?
- Comment System showing different type of IP
- What is the earliest hook comment meta can be saved?
- Get Comment Author ID on the fly while posting
- How / where is the wp_query object created for RSS feeds?
- Separate page for comments using permalinks and add_rewrite_rule
- Return count for characters in the comment and perform action based on the length
- How to load new posts from wordpress db into wordpress homepage without refreshing the site?
- Delete/Spam Comment Button
- comments.php remove date/time’s #hyperlink
- comment just attachment .. reply just text … can I do that?
- How to make email field not required in comments?
- How to prevent users/authors from seing IP/email of new commentators?
- I want to limit registered user to 1 comment per post in WordPress
- edit comments in front end
- How to replace anonymous comment form with a registration form on wordpress?
- What is wrong with this? [closed]
- Comment moderation
- I have tried using Plugins to remove 72K comments with no success
- How to get the 5 most recent comments and each comment 5 most recent replies (children)
- Comment text area in single blog post and show comments if approved
- comment files and s
- How to ‘If Author’ Comments Check
- selectively disable akismet
- Disqus moderation page not working in WordPress admin section
- Comment Blacklist
- Comment forum to display under the comment you’re replying too
- Recent comments per tagged post?
- Subscribe to a post’s comments without posting a comment yourself
- Modify “Recent Comments” List in WP-Admin
- Comment submission & navigation redirects to default language
- How to hide the login / profile urls on top of comment box for a post
- wp_list_comments adds unnecessary elements
- Why default comment fields don’t show up?
- comment awaiting moderation
- How do you fetch the authors email or IP from /comments? (REST API)
- How can I filter the user avatar displayed in comments? – get_avatar_url filter works everywhere but not in comments