ActionScheduler_wpCommentLogger::filter_comment_query_clauses()publicWC 1.0

Метод класса: ActionScheduler_wpCommentLogger{}

Хуков нет.

Возвращает

Массив.

Использование

$ActionScheduler_wpCommentLogger = new ActionScheduler_wpCommentLogger();
$ActionScheduler_wpCommentLogger->filter_comment_query_clauses( $clauses, $query );
$clauses(массив) (обязательный)
-
$query(WP_Comment_Query) (обязательный)
-

Код ActionScheduler_wpCommentLogger::filter_comment_query_clauses() WC 9.3.3

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