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)
  • (array|stdClass) $count An empty array or an object containing comment counts.
    Richiesto:
  • (int) $post_id The post ID. Can be 0 to represent the whole site.
    Richiesto:
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 );