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

Read more here: change comment structure in buddypress plugin


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , , ,

Wordpress related questions and answers: