Last active
March 30, 2018 12:41
-
-
Save calliaweb/9ead108e21e663fb6c144a1322d04615 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 | |
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