WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WC_Shop_Customizer::sanitize_default_catalog_orderby() WC 1.0

Sanitize the catalog orderby setting.

Это метод класса: WC_Shop_Customizer

Хуки из метода
Возвращает

Строку.

Использование

$WC_Shop_Customizer = new WC_Shop_Customizer();
$var = $WC_Shop_Customizer->sanitize_default_catalog_orderby( $value );
$value(строка) (обязательный)
An array key from the below array.

Код WC Shop Customizer::sanitize default catalog orderby: woocommerce/includes/customizer/class-wc-shop-customizer.php WC 3.8.1

<?php
public function sanitize_default_catalog_orderby( $value ) {
	$options = apply_filters( 'woocommerce_default_catalog_orderby_options', array(
		'menu_order' => __( 'Default sorting (custom ordering + name)', 'woocommerce' ),
		'popularity' => __( 'Popularity (sales)', 'woocommerce' ),
		'rating'     => __( 'Average rating', 'woocommerce' ),
		'date'       => __( 'Sort by most recent', 'woocommerce' ),
		'price'      => __( 'Sort by price (asc)', 'woocommerce' ),
		'price-desc' => __( 'Sort by price (desc)', 'woocommerce' ),
	) );

	return array_key_exists( $value, $options ) ? $value : 'menu_order';
}