Skip to main content

fc_customer_persisted_data_clear_all_fields_skip_list

Type: Filter

Filters the persisted field keys that are not cleared.

Signature​

apply_filters( 'fc_customer_persisted_data_clear_all_fields_skip_list', $skip );

Parameters​

NameTypeDescription
$skiparrayWhether to skip the default behavior.

Since​

  • 1.4.0

Source: inc/checkout-steps.php

Examples​

add_filter( 'fc_customer_persisted_data_clear_all_fields_skip_list',
/**
* Preserve additional fields when clearing all data.
*
* @param array $skip Whether to skip the default behavior.
* @return array Filtered value.
*/
function( $skip ) {
$skip[] = 'custom_preferences';
return $skip;
},
10
);