Skip to main content

fc_is_billing_same_as_shipping_checked

Type: Filter

Filters whether the billing address is the same as the shipping address.

Signature​

apply_filters( 'fc_is_billing_same_as_shipping_checked', $billing_same_as_shipping );

Parameters​

NameTypeDescription
$billing_same_as_shippingmixedBilling same as shipping.

Since​

  • 1.5.0

Source: inc/checkout-steps.php

Examples​

add_filter( 'fc_is_billing_same_as_shipping_checked',
/**
* Check billing same as shipping by default.
*
* @param mixed $billing_same_as_shipping Billing same as shipping.
* @return mixed Filtered value.
*/
function( $billing_same_as_shipping ) {
return true;
},
10
);