A WordPress-centric search engine for devs and theme authors



comments_number ›

Since1.5.0
Deprecatedn/a
apply_filters( 'comments_number', $output, $number )
Parameters: (2)
  • (string) $output A translatable string formatted based on whether the count is equal to 0, 1, or 1+.
    Required: Yes
  • (int) $number The number of post comments.
    Required: Yes
See:
  • _n()
Defined at:
Codex:

Filters the comments count for display.





Source

return apply_filters( 'comments_number', $output, $number );