• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Easy Digital Downloads a2z

Easy Digital Downloads a2z

Easy Digital Downloads a2z

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / EDD_Customer_Query::parse_query() – Parses arguments passed to the customer query with default query parameters.

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 ) );
  }
 

 View on GitHub View on Trac

Published: 26th November 2019 | Last updated: 26th November 2019

Primary Sidebar

Information

Function name: EDD_Customer_Query::parse_query
Class ref: EDD_Customer_Query
Plugin ref: Easy Digital Downloads
Version: 2.11.6
Sourcefile: includes/class-edd-customer-query.php
File ref: includes/class-edd-customer-query.php
Deprecated?: No
API Letters: C,E,P,Q

Footer

Easy Digital Downloads a2z
Easy Digital Downloads a2z
Easy Digital Downloads a2z
WordPress 5.9.3
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  edd.wp-a2z.org
© Copyright Easy Digital Downloads a2z 2014-2022. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites