wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_count_comments › WordPress Filter Hooks

Da2.7.0
Deprecaton/a
› apply_filters( 'wp_count_comments', array()
Parametri: (2)
  • () count An empty array or an object containing comment counts.
    Richiesto: Sì
  • () post_id The post ID. Can be 0 to represent the whole site.
    Richiesto: Sì
Definito a:
Codex:

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





Sorgenti

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