MainWP Community

Remove avatars from comments in WordPress

Remove avatars from comments in WordPress on your child site.

Snippet Type

Execute on Child Sites

Snippet

function wp_remove_avatars_from_comments( $avatar ) {
	global $in_comment_loop;
	return $in_comment_loop ? '' : $avatar;
}
add_filter( 'get_avatar', 'wp_remove_avatars_from_comments' );
1 Like