Created
October 10, 2013 03:34
-
-
Save wpspeak/6912641 to your computer and use it in GitHub Desktop.
Open Comment Author's Link in New Tab
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
<?php | |
// Open Comment Author's Link in New Tab | |
add_filter( "get_comment_author_link", "afn_modifiy_comment_author_anchor" ); | |
function afn_modifiy_comment_author_anchor( $author_link ){ | |
return str_replace( "<a", "<a target='_blank'", $author_link ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment