WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I started to use Bones HTML5 Wordpress Starter Theme, but a little confuse with some built-in function in bones,

There is function bones_comments() in functions.php but I cannot find anywhere on the files where this function is used or called.

And I take a look at the code in the function it just looks like some code to output wordpress comments, and yet there is comments.php for comment_template() in wordpress.

So really confuse why bones add the bones_comments() function and not use it. and what is the difference between bones_comments() and comments.php

share|improve this question
up vote 5 down vote accepted

It is a function created to be used as a hook.

Inside the comments.php file is

<?php wp_list_comments('type=comment&callback=bones_comments'); ?>

So you can add whatever you want to the bones_comments() function and have it added to the comment output.

share|improve this answer
thanks @gteh, my bad not to pay attention to the callback string :) – nonsensecreativity Dec 19 '12 at 7:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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