1

Which default callback function wp_list_comments use if I don't set callback parameter? I saw in the code of this function but I can't understand it.

4

The wp_list_comments() function uses the HTML comment list class Walker_Comment by default:

  • A single comment is then displayed with the Walker_Comment::comment() method (#source).

  • If the comment format is HTML5 then the Walker_Comment::html5_comment() is used instead (#source).

  • The pingbacks are rendered with the Walker_Comment::ping() method (#source).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.