wpseek.com
A WordPress-centric search engine for devs and theme authors



comments_number › WordPress Filter Hooks

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

Filters the comments count for display.





Source

return apply_filters( 'comments_number', $comments_number_text, $comments_number );