<?php comments_number();?>
This WordPress function counts the number of comments on a post; when there are no comments it returns the text "NO comment". This causes problems in my layout, so I would like it to display 0 zero instead. How do I do that? As far as I know I have to make a filter, but I don’t know which hook to use.
Also, how do we know this is the right hook? Some tips on how to work this out would be even more beneficial so that I can create a filter on my own next time.