Created
December 13, 2013 09:44
-
-
Save shemul49rmc/7942064 to your computer and use it in GitHub Desktop.
Add rel=”nofollow” To WordPress Comment Reply Links
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Add rel=”nofollow” To WordPress Comment Reply Links By http://goo.gl/ht6fZo// | |
function add_nofollow_to_reply_link( $link ) { | |
return str_replace( '")\'>', '")\' rel=\'nofollow\'>', $link ); | |
} | |
add_filter( 'comment_reply_link', 'add_nofollow_to_reply_link' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment