Filter
rpress_pickup_fee_managed
On this page
Filters whether an extension manages the pickup fee.
Runs in the pickup branch of the sublabel logic, after the fee-extension check. Return true if a plugin handles pickup fees itself so core does not label pickup as 'Free'.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$pickup_fee_managed | bool | Default false. |
Return value#
bool. True to suppress the 'Free' pickup sublabel.
Example#
function my_pickup_fee_managed( $pickup_fee_managed ) {
return class_exists( 'My_Plugin_Pickup_Fees' );
}
add_filter( 'rpress_pickup_fee_managed', 'my_pickup_fee_managed' );
Source#
Applied in:
includes/rp-delivery-fee-basic.php(line 187), inrpress_get_checkout_service_fee_sublabel()
See also#
Was this page helpful?
