Created
July 26, 2022 08:26
-
-
Save mbrughi/1c7892edda1b3b3d9e21961beefad918 to your computer and use it in GitHub Desktop.
Removes link to comment author websites
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
/* | |
* Remove Comments Author's link | |
* | |
*/ | |
function remove_commentauthorlink( $return, $author, $comment_ID ) { | |
return $author; | |
} | |
add_filter( 'get_comment_author_link', 'remove_commentauthorlink', 10, 3 ); | |
function remove_commentauthorurl() { | |
return false; | |
} | |
add_filter( 'get_comment_author_url', 'remove_commentauthorurl'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment