• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WooCommerce a2z

WooCommerce a2z

WooCommerce

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / Classes / WC_Query

Methods

1 to 30 of 47
  • WC_Query::__construct() – Constructor for the query class. Hooks in methods.
  • WC_Query::add_endpoints() – Add endpoints for query vars.
  • WC_Query::add_query_vars() – Add query vars.
  • WC_Query::adjust_posts_count() – This function used to be hooked to found_posts and adjust the posts count when the filtering by attribute widget was used and variable products were present. Now it isn’t hooked anymore and does nothing but return the input unchanged, since the pull request in which it was introduced has been reverted.
  • WC_Query::adjust_total_pages() – The ‘adjust_posts_count’ method that handles the ‘found_posts’ filter indirectly initializes the loop properties with a call to ‘wc_setup_loop’. This includes setting ‘total_pages’ to ‘$GLOBALS[’wp_query’]->max_num_pages’, which at that point has a value of zero.
  • WC_Query::append_product_sorting_table_join() – Join wc_product_meta_lookup to posts if not already joined.
  • WC_Query::get_catalog_ordering_args() – Returns an array of arguments for ordering products based on the selected values.
  • WC_Query::get_current_endpoint() – Get query current active query var.
  • WC_Query::get_current_posts() – Get the posts (or the ids of the posts) found in the current WP loop.
  • WC_Query::get_endpoint_title() – Get page title for an endpoint.
  • WC_Query::get_endpoints_mask() – Endpoint mask describing the places the endpoint should be added.
  • WC_Query::get_errors() – Get any errors from querystring.
  • WC_Query::get_layered_nav_chosen_attributes_inst() – Instance version of get_layered_nav_chosen_attributes, needed for unit tests.
  • WC_Query::get_layered_nav_chosen_attributes() – Get an array of attributes and terms selected with the layered nav widget.
  • WC_Query::get_main_meta_query() – Get the meta query which was used by the main query.
  • WC_Query::get_main_query() – Get the main query which product queries ran against.
  • WC_Query::get_main_search_query_sql() – Based on WP_Query::parse_search
  • WC_Query::get_main_tax_query() – Get the tax query which was used by the main query.
  • WC_Query::get_meta_query() – Appends meta queries to an array.
  • WC_Query::get_products_in_view() – Get an unpaginated list all product IDs (both filtered and unfiltered). Makes use of transients.
  • WC_Query::get_query_vars() – Get query vars.
  • WC_Query::get_tax_query() – Appends tax queries to an array.
  • WC_Query::handle_get_posts() – Handler for the ‘the_posts’ WP filter.
  • WC_Query::init_query_vars() – Init query vars by loading options.
  • WC_Query::is_showing_page_on_front() – Are we currently on the front page?
  • WC_Query::layered_nav_init() – Layered nav init.
  • WC_Query::layered_nav_query() – Layered Nav post filter.
  • WC_Query::order_by_popularity_post_clauses() – WP Core does not let us change the sort direction for individual orderby params – https://core.trac.wordpress.org/ticket/17065.
  • WC_Query::order_by_price_asc_post_clauses() – Handle numeric price sorting.
  • WC_Query::order_by_price_desc_post_clauses() – Handle numeric price sorting.
[1] [2] Next »

Extended by

Class name: WC_Query
Plugin ref: WooCommerce
Version: 5.0.0
Sourcefile: includes/class-wc-query.php
File ref: includes/class-wc-query.php
API Letters: Q,W

Published: 26th November 2019 | Last updated: 10th December 2020

Primary Sidebar

Information

Class name: WC_Query
Plugin ref: WooCommerce
Version: 5.0.0
Sourcefile: includes/class-wc-query.php
File ref: includes/class-wc-query.php
API Letters: Q,W

Footer

WooCommerce a2z
WooCommerce a2z
WooCommerce
WordPress 5.6.2
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:  woocommerce.wp-a2z.org
© Copyright WooCommerce a2z 2014-2021. All rights reserved.


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

  • Home
  • Blog
  • Sitemap
  • Sites