WC_Shop_Customizer::sanitize_archive_display
Sanitize the shop page & category display setting.
Method of the class: WC_Shop_Customizer{}
No Hooks.
Returns
String.
Usage
$WC_Shop_Customizer = new WC_Shop_Customizer(); $WC_Shop_Customizer->sanitize_archive_display( $value );
- $value(string) (required)
'','subcategories', or'both'.
WC_Shop_Customizer::sanitize_archive_display() WC Shop Customizer::sanitize archive display code WC 10.6.2
public function sanitize_archive_display( $value ) {
$options = array( '', 'subcategories', 'both' );
return in_array( $value, $options, true ) ? $value : '';
}