-
-
Save billerickson/e8adaafbec8af51eb47c2f16c81fe797 to your computer and use it in GitHub Desktop.
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 | |
/** | |
* Remove avatars from comment list | |
* @see https://www.billerickson.net/code/remove-avatars-from-comments/ | |
*/ | |
function be_remove_avatars_from_comments( $avatar ) { | |
global $in_comment_loop; | |
return $in_comment_loop ? '' : $avatar; | |
} | |
add_filter( 'get_avatar', 'be_remove_avatars_from_comments' ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment