Documentation
ReturnDesk Pro
Exclusion Rules

Exclusion Rules

Exclusion rules prevent specific products or entire categories from being eligible for returns or exchanges.

Navigate to WooCommerce → ReturnDesk → Returns → Exclusions.


Excluded Products

Enter comma-separated product IDs in the Excluded Product IDs field. Variations are excluded by their parent product ID.


Excluded Categories

Select WooCommerce product categories. Products in excluded categories cannot be returned or exchanged.

Category exclusions are not hierarchical - child categories must be excluded separately.


Scope

Exclusions apply to both return and exchange requests by default. Use the returndesk_pro_is_excluded filter to differentiate behaviour:

add_filter( 'returndesk_pro_is_excluded', function( bool $excluded, int $product_id, string $type ): bool {
    // $type is 'return' or 'exchange'
    if ( 'exchange' === $type && my_custom_condition( $product_id ) ) {
        return true;
    }
    return $excluded;
}, 10, 3 );