WC_Shop_Customizer::sanitize_archive_display( string $value )

Sanitize the shop page & category display setting.


Description Description


Parameters Parameters

$value

(Required) '', 'subcategories', or 'both'.


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/customizer/class-wc-shop-customizer.php

	public function sanitize_archive_display( $value ) {
		$options = array( '', 'subcategories', 'both' );

		return in_array( $value, $options, true ) ? $value : '';
	}

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.