Skip to content
Docs
Get RestroPress

Filter

rpress_pickup_fee_managed

Updated
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#

ParameterTypeDescription
$pickup_fee_managedboolDefault 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), in rpress_get_checkout_service_fee_sublabel()

See also#

Was this page helpful?