Skip to main content

fc_is_shipping_same_as_billing_checked

Type: Filter

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

Signature​

apply_filters( 'fc_is_shipping_same_as_billing_checked', $shipping_same_as_billing );

Parameters​

NameTypeDescription
$shipping_same_as_billingmixedShipping same as billing.

Since​

  • 3.1.0

Source: inc/checkout-steps.php

Examples​

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