Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Open Comment Author's Link in New Tab
<?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