Skip to main content

fc_hide_optional_fields_skip_types

Type: Filter

Filters the field types that are not collapsed behind an "Add" link.

Signature​

apply_filters( 'fc_hide_optional_fields_skip_types', $skip );

Parameters​

NameTypeDescription
$skiparrayWhether to skip the default behavior.

Since​

  • 1.2.0

Source: inc/checkout-hide-optional-fields.php

Examples​

add_filter( 'fc_hide_optional_fields_skip_types',
/**
* Add textarea fields to skip list.
*
* @param array $skip Whether to skip the default behavior.
* @return array Filtered value.
*/
function( $skip ) {
$skip[] = 'textarea';
return $skip;
},
10
);