ActionScheduler_wpCommentLogger::filter_comment_count()
Remove action log entries from wp_count_comments()
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)
- -
ActionScheduler_wpCommentLogger::filter_comment_count() ActionScheduler wpCommentLogger::filter comment count code WC 9.3.1
public function filter_comment_count( $stats, $post_id ) { global $wpdb; if ( 0 === $post_id ) { $stats = $this->get_comment_count(); } return $stats; }