WC_Shop_Customizer::sanitize_checkout_field_display()
Sanitize field display.
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'.
WC_Shop_Customizer::sanitize_checkout_field_display() WC Shop Customizer::sanitize checkout field display code WC 9.3.3
public function sanitize_checkout_field_display( $value ) { $options = array( 'hidden', 'optional', 'required' ); return in_array( $value, $options, true ) ? $value : ''; }