gpb_resource_pricing_rules

  1. Description
  2. Usage
  3. Parameters
  4. Since

Description

Filters the pricing rule configurations applied when calculating a resource’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 resource.

Usage

Applied globally

add_filter( 'gpb_resource_pricing_rules', 'my_custom_function' );

Parameters

$rule_configs array

The resource’s pricing rule configurations.

$resource Resource

The resource being priced.

$resource_booking_data BookingData

The booking data (with the resource attached).

Since

  • 1.0-beta-2.6 Hook added.