wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



wp_count_comments › Les Filtres WordPress

Depuis2.7.0
Dépréciéen/a
› apply_filters( 'wp_count_comments', array()
Paramètres: (2)
  • () count An empty array or an object containing comment counts.
    Requis: Oui
  • () post_id The post ID. Can be 0 to represent the whole site.
    Requis: Oui
Défini(e) dans:
Codex:

Filters the comments count for a given post or the whole site.





Source

$filtered = apply_filters( 'wp_count_comments', array(), $post_id );