fc_shipping_not_needed_shipping_field_keys
Type: Filter
Filters the shipping not needed shipping field keys.
Signature
apply_filters( 'fc_shipping_not_needed_shipping_field_keys', $shipping_copy_billing_field_keys );
Parameters
| Name | Type | Description |
|---|---|---|
$shipping_copy_billing_field_keys | mixed | Shipping copy billing field keys. |
Since
3.1.0
Source: inc/checkout-steps.php
Examples
add_filter( 'fc_shipping_not_needed_shipping_field_keys',
/**
* Add custom shipping fields when shipping not needed.
*
* @param mixed $shipping_copy_billing_field_keys Shipping copy billing field keys.
* @return mixed Filtered value.
*/
function( $shipping_copy_billing_field_keys ) {
$shipping_copy_billing_field_keys[] = 'shipping_custom_field';
return $shipping_copy_billing_field_keys;
},
10
);