WordPress automatically adds rel="nofollow ugc" to all links posted in comments. In our case we use comments to link to relevant articles in a website and need them to be followed.
How to remove this automatic rel being added?
The function itself is setup in the core with: wp_rel_ugc()
There are older posts recommending this filter:
remove_filter( 'pre_comment_content', 'wp_rel_nofollow', 15 );
However that no longer seems to work.
I would like to disable this function altogether.
I looks like some effort was made to fix this in core, but this has not been implemented yet: Prevent tagging certain links in comments with rel="nofollow ugc"