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.5.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 2304
    		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