ActionScheduler_wpCommentLogger::filter_comment_query_clauses()publicWC 1.0

Filter comment queries.

Method of the class: ActionScheduler_wpCommentLogger{}

No Hooks.

Return

Array.

Usage

$ActionScheduler_wpCommentLogger = new ActionScheduler_wpCommentLogger();
$ActionScheduler_wpCommentLogger->filter_comment_query_clauses( $clauses, $query );
$clauses(array) (required)
Query's clauses.
$query(WP_Comment_Query) (required)
Query object.

ActionScheduler_wpCommentLogger::filter_comment_query_clauses() code WC 9.4.2

public function filter_comment_query_clauses( $clauses, $query ) {
	if ( !empty($query->query_vars['action_log_filter']) ) {
		$clauses['where'] .= $this->get_where_clause();
	}
	return $clauses;
}