crp_wc_cart_related_products_query_args
Filter the query arguments for cart related products.
Type: filter
Since: 4.3.0
Source: includes/woocommerce/class-woocommerce-module.php line 1084
Parameters
| Type | Name | Description |
|---|---|---|
array | $query_args | Query arguments. |
float | $min_price | Minimum product price in the band. |
float | $max_price | Maximum product price in the band. |
float | $gap | Amount remaining until free shipping. |
Usage
add_filter( 'crp_wc_cart_related_products_query_args', function($query_args, $min_price, $max_price, $gap) {
// ...
return $query_args;
} );