gpb_rest_calculated_price
Description
Filter the calculated per-unit price before returning to frontend.
Usage
Applied globally
add_filter( 'gpb_rest_calculated_price', 'my_custom_function' );
Parameters
$per_unit_price
float
The calculated per-unit price.
$calculation_data
array
The data used for calculation.
$actual_quantity
int
The actual quantity from the request.
$request
WP_REST_Request
The REST request.