Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
add_filter( 'genesis_comment_list_args', 'jmw_disable_genesis_comment_avatar' );
/**
* Disable comment avatars in Genesis.
* Set comment avatar size to 0 and use the default WordPress comment function instead of the Genesis one.
*
* @param array $args Comment args
* @return array Filtered comment args
*/
function jmw_disable_genesis_comment_avatar( $args ) {
$args['avatar_size'] = 0;
$args['callback'] ='';
return $args;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.