Skip to main content

fc_is_shipping_address_data_same_as_billing_before

Type: Filter

Filters the early result of comparing shipping address data with the billing address.

Signature​

apply_filters( 'fc_is_shipping_address_data_same_as_billing_before', $value );

Parameters​

NameTypeDescription
$valuemixedShort-circuit value. Return a non-null value to override the default behavior. Default null.

Since​

  • 3.1.0

Source: inc/checkout-steps.php

Examples​

add_filter( 'fc_is_shipping_address_data_same_as_billing_before',
/**
* Force shipping and billing addresses to always be considered different.
*
* @param mixed $value Short-circuit value. Return a non-null value to override the default behavior. Default null.
* @return mixed Filtered value.
*/
function( $value ) {
// Return false
return false;
},
10
);