gpb_booking_field_price
Description
Filters the per-unit price of a Booking field in the entry’s product info. The browser’s price comes from gpb_rest_calculated_price instead. The two must match, or the submission fails the Total’s validation.
Usage
Applied globally
add_filter( 'gpb_booking_field_price', 'my_custom_function' );Parameters
$price
float
The per-unit price GP Bookings calculated for the booking.
$field
GF_Field
The Booking field.
$form
array
The current form.
$entry
array
The current entry.
$product
array
The Booking product as Gravity Forms built it, plus GP Bookings’ service, resource and time options, still carrying the submitted price.
Since
1.0.9Hook added.