You appear to be a bot. Output may be restricted
Description
Remove action log entries from wp_count_comments()
Usage
$object = ActionScheduler_wpCommentLogger::filter_comment_count( $stats, $post_id );
Parameters
- $stats
- ( array ) required –
- $post_id
- ( int ) required –
Returns
object
Source
File name: woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_wpCommentLogger.php
Lines:
1 to 9 of 9
public function filter_comment_count( $stats, $post_id ) { global $wpdb; if ( 0 === $post_id ) { $stats = $this->get_comment_count(); } return $stats; }