woocommerce_product_data_store_cpt_get_products_query

woocommerce_product_data_store_cpt_get_products_query

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_product_data_store_cpt_get_products_query') is found 1 times:

  • /includes/data-stores/class-wc-product-data-store-cpt.php line 2322
    2318
    2319
    2320
    2321
    2322
    2323
    2324
    2325
    2326
    2327
    2328
        if ( isset( $query_vars['orderby'] ) && 'include' === $query_vars['orderby'] ) {
            $wp_query_args['orderby'] = 'post__in';
        }
     
        return apply_filters( 'woocommerce_product_data_store_cpt_get_products_query', $wp_query_args, $query_vars, $this );
    }
     
    /**
     * Query for Products matching specific criteria.
     *
     * @since 3.2.0

See this hook used in plugins:

Examples using woocommerce_product_data_store_cpt_get_products_query