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_posts() – Get the posts (or the ids of the posts) found in the current WP loop.
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_products_in_view() – Get an unpaginated list all product IDs (both filtered and unfiltered). Makes use of transients.
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::parse_request() – Parse the request and look for query vars – endpoints may not be supported.
WC_Query::remove_product_query_filters() – Pre_get_posts above may adjust the main query to add WooCommerce logic. When this query is done, we need to ensure all custom filters are removed.
WC_Regenerate_Images::queue_image_regeneration() – Get list of images and queue them for regeneration
WC_Shortcode_Products::get_query_results() – Run the query and return an array of data, including queried ids and pagination information.