Skip to main content

fc_is_billing_address_data_same_as_shipping_before

Type: Filter

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

Signature​

apply_filters( 'fc_is_billing_address_data_same_as_shipping_before', $value );

Parameters​

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

Since​

  • 1.5.0

Source: inc/checkout-steps.php

Examples​

add_filter( 'fc_is_billing_address_data_same_as_shipping_before',
/**
* Custom billing address comparison logic.
*
* @param mixed $value Short-circuit value. Return a non-null value to override the default behavior. Default null.
* @return mixed Filtered value.
*/
function( $value ) {
// Custom comparison logic - return true/false or null for default comparison
return null; // Use default comparison
},
10
);