ActionScheduler_wpCommentLogger::filter_comment_query_clauses()
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() 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; }