wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



get_comments_number › Filtr WordPress Hooks

Od1.5.0
Przestarzałyn/a
apply_filters( 'get_comments_number', $comments_number, $post_id )
Parametry: (2)
  • (string|int) $comments_number A string representing the number of comments a post has, otherwise 0.
    Wymagane: Tak
  • (int) $post_id Post ID.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the returned comment count for a post.





Źródło

return apply_filters( 'get_comments_number', $comments_number, $post_id );