MainWP Community

Remove the “nofollow” From the Recent Comments

Remove the “nofollow” from the recent comments on your child site.

Snippet Type

Execute on Child Sites

Snippet

function dofollow_blog_author_comment( $return, $author ) {
		if ( $author === 'Your Name' ) {
				$return = str_replace( "rel='external nofollow ugc'", '', $return );
	 	}

		return $return;
}
add_filter( 'get_comment_author_link', 'dofollow_blog_author_comment', 10, 2 );

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.