(int)get_theme_mod('adventeqa_tabs_item_num', 6), 'no_found_rows' => 0, 'post_status' => 'publish', 'post_type' => 'product', 'meta_key' => '_wc_average_rating', 'orderby' => 'meta_value_num', 'order' => 'DESC', 'meta_query' => WC()->query->get_meta_query(), 'tax_query' => WC()->query->get_tax_query(), ); // WPCS: slow query ok. $adventeqa_rated_query = new WP_Query( $adventeqa_rated_query_args ); if ( $adventeqa_rated_query->have_posts() ): while ( $adventeqa_rated_query->have_posts() ): $adventeqa_rated_query->the_post(); $adventeqa_rated_product_id = get_the_ID(); $adventeqa_rated_product = wc_get_product( $adventeqa_rated_product_id ); $adventeqa_rated_product_image = wp_get_attachment_image_src( $adventeqa_rated_product->get_image_id(), 'full' ); $adventeqa_products_product_orig_price = $adventeqa_rated_product->get_regular_price(); $adventeqa_products_product_sale_price = $adventeqa_rated_product->get_sale_price(); $adventeqa_products_product_on_sale = $adventeqa_rated_product->is_on_sale(); $adventeqa_products_product_currency = get_woocommerce_currency_symbol(); $adventeqa_products_product_type = $adventeqa_rated_product->get_type(); ?>

get_name()); ?>

get_short_description()); ?>

get_price_html()); ?>

have_posts()) ): ?>

(int)get_theme_mod('adventeqa_tabs_item_num', 6), 'no_found_rows' => 1, 'post_status' => 'publish', 'post_type' => 'product', 'meta_key' => 'total_sales', 'orderby' => 'meta_value_num', 'order' => 'DESC', 'meta_query' => WC()->query->get_meta_query(), 'tax_query' => WC()->query->get_tax_query(), ); // WPCS: slow query ok. $adventeqa_sold_query = new WP_Query( $adventeqa_sold_query_args ); if ( $adventeqa_sold_query->have_posts() ): while ( $adventeqa_sold_query->have_posts() ): $adventeqa_sold_query->the_post(); $adventeqa_sold_product_id = get_the_ID(); $adventeqa_sold_product = wc_get_product( $adventeqa_sold_product_id ); $adventeqa_sold_product_image = wp_get_attachment_image_src( $adventeqa_sold_product->get_image_id(), 'full' ); $adventeqa_products_product_orig_price = $adventeqa_sold_product->get_regular_price(); $adventeqa_products_product_sale_price = $adventeqa_sold_product->get_sale_price(); $adventeqa_products_product_on_sale = $adventeqa_sold_product->is_on_sale(); $adventeqa_products_product_currency = get_woocommerce_currency_symbol(); $adventeqa_products_product_type = $adventeqa_sold_product->get_type(); ?>

get_name()); ?>

get_short_description()); ?>

get_price_html()); ?>

have_posts()) ): ?>