fc_pro_needs_pickup_point_address_from_shipping_method
Type: Filter
Filters whether needs pickup point address from shipping method is needed.
Signature
apply_filters( 'fc_pro_needs_pickup_point_address_from_shipping_method', $value );
Parameters
| Name | Type | Description |
|---|---|---|
$value | bool | Whether needs pickup point address from shipping method is needed. Default false. |
Since
3.0.5
Source: inc/checkout-local-pickup.php
Examples
add_filter( 'fc_pro_needs_pickup_point_address_from_shipping_method',
/**
* Enable pickup address from shipping method for specific methods.
*
* @param bool $value Whether needs pickup point address from shipping method is needed. Default false.
* @return bool Filtered value.
*/
function( $value ) {
// Enable for custom shipping method
return true;
},
10
);