Skip to main content

fc_copy_billing_to_shipping_address_when_shipping_not_needed

Type: Filter

Filters whether the billing address is copied to shipping when the cart does not need shipping.

Signature​

apply_filters( 'fc_copy_billing_to_shipping_address_when_shipping_not_needed', $value );

Parameters​

NameTypeDescription
$valueboolValue to filter. Default true.

Since​

  • 3.2.5

Source: inc/checkout-steps.php

Examples​

add_filter( 'fc_copy_billing_to_shipping_address_when_shipping_not_needed',
/**
* Disable automatic copying of billing to shipping when shipping not needed.
*
* @param bool $value Value to filter. Default true.
* @return bool Filtered value.
*/
function( $value ) {
return false;
},
10
);