fc_skip_change_customer_address_field_value_from_checkout_data
Type: Filter
Filters the skip change customer address field value from checkout data.
Signature
apply_filters( 'fc_skip_change_customer_address_field_value_from_checkout_data', $skip, $value, $customer );
Parameters
| Name | Type | Description |
|---|---|---|
$skip | bool | Whether to skip the default behavior. Default false. |
$value | mixed | Value to filter. |
$customer | \WC_Customer | Customer. |
Since
4.1.0
Source: inc/checkout-steps.php
Examples
add_filter( 'fc_skip_change_customer_address_field_value_from_checkout_data',
/**
* Skip changing customer address field values.
*
* @param bool $skip Whether to skip the default behavior. Default false.
* @param mixed $value Value to filter.
* @param \WC_Customer $customer Customer.
* @return bool Filtered value.
*/
function( $skip, $value, $customer ) {
return true; // Skip all changes
},
10,
3
);