Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

1 Answer 1

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 :) –  nackle Dec 19 '12 at 7:26

Your Answer

 
discard

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.