I try to change default comment structure of buddy press with my own plugin and add some custom edit . for that i found we should use wp_list_comments
and in callback function . i use below example function:
function my_blog_comments( $comment, $args, $depth ) {
$GLOBALS['comment'] = $comment;
if ( 'pingback' == $comment->comment_type )
return false;
if ( 1 == $depth )
$avatar_size = 50;
else
$avatar_size = 25;
...
}
wp_list_comments( array( 'callback' => 'my_blog_comments', 'type' => 'comment' ) );
but cant show any change on comment structure what's wrong in my code