WordPress at Your Fingertips
function is not described

WC_Shop_Customizer::sanitize_checkout_field_display() public WC 1.0

Sanitize field display.

{} It's a method of the class: WC_Shop_Customizer{}

No Hooks.

Return

String.

Usage

$WC_Shop_Customizer = new WC_Shop_Customizer();
$WC_Shop_Customizer->sanitize_checkout_field_display( $value );
$value(string) (required)
'', 'subcategories', or 'both'.

Code of WC_Shop_Customizer::sanitize_checkout_field_display() WC 5.6.0

public function sanitize_checkout_field_display( $value ) {
	$options = array( 'hidden', 'optional', 'required' );
	return in_array( $value, $options, true ) ? $value : '';
}