Recent

crp_wc_cart_related_products_query_args filter Pro only

Filter the query arguments for cart related products.

Type: filter
Since: 4.3.0
Source: includes/woocommerce/class-woocommerce-module.php line 1084

Parameters

TypeNameDescription
array$query_argsQuery arguments.
float$min_priceMinimum product price in the band.
float$max_priceMaximum product price in the band.
float$gapAmount 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;
} );