gpb_service_pricing_rules
Description
Filters the pricing rule configurations applied when calculating a service’s price. Fires only during price calculation (live preview, order total, submission, and breakdown), not when the pricing editor loads saved rules, so rules added here are applied at calculation time without being persisted to the service.
Usage
Applied globally
add_filter( 'gpb_service_pricing_rules', 'my_custom_function' );Parameters
$rule_configs
array
The service’s pricing rule configurations.
$service
Service
The service being priced.
$service_only_data
BookingData
The booking data (resources excluded).
Since
1.0-beta-2.6Hook added.