You appear to be a bot. Output may be restricted
Description
Parses arguments passed to the customer query with default query parameters.
Usage
EDD_Customer_Query::parse_query();
Parameters
Returns
void
Source
File name: easy-digital-downloads/includes/class-edd-customer-query.php
Lines:
1 to 29 of 29
protected function parse_query() { $this->query_vars = wp_parse_args( $this->query_vars, $this->query_var_defaults ); if ( $this->query_vars['number'] < 1 ) { $this->query_vars['number'] = 999999999999; } $this->query_vars['offset'] = absint( $this->query_vars['offset'] ); if ( ! empty( $this->query_vars['date_query'] ) && is_array( $this->query_vars['date_query'] ) ) { $this->date_query = new WP_Date_Query( $this->query_vars['date_query'], $this->table_name . '.' . $this->date_key ); } $this->meta_query = new WP_Meta_Query(); $this->meta_query->parse_query_vars( $this->query_vars ); if ( ! empty( $this->meta_query->queries ) ) { $this->meta_query_clauses = $this->meta_query->get_sql( $this->meta_type, $this->table_name, $this->primary_key, $this ); } /** * Fires after the customer query vars have been parsed. * * @since 2.8 * * @param EDD_Customer_Query &$this The EDD_Customer_Query instance (passed by reference). */ do_action_ref_array( 'edd_parse_customer_query', array( &$this ) ); }