WordPress at Your Fingertips
function is not described

ActionScheduler_wpCommentLogger::filter_comment_count() public WC 1.0

{} It's a method of the class: ActionScheduler_wpCommentLogger{}

No Hooks.

Return

Object.

Usage

$ActionScheduler_wpCommentLogger = new ActionScheduler_wpCommentLogger();
$ActionScheduler_wpCommentLogger->filter_comment_count( $stats, $post_id );
$stats(array) (required)
-
$post_id(int) (required)
-

Code of ActionScheduler_wpCommentLogger::filter_comment_count() WC 6.1.0

public function filter_comment_count( $stats, $post_id ) {
	global $wpdb;

	if ( 0 === $post_id ) {
		$stats = $this->get_comment_count();
	}

	return $stats;
}