WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about wp_count_comments

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/comment.php apply_filters 1410 /**
* Filters the comments count for a given post or the whole site.
*
* @since 2.7.0
*
* @param array|stdClass $count An empty array or an object containing comment counts.
* @param int $post_id The post ID. Can be 0 to represent the whole site.
*/

Hook Parameters

Parameter Type Name Description
array|stdClass $count An empty array or an object containing comment counts.
int $post_id The post ID. Can be 0 to represent the whole site.