wc_get_product_visibility_options()WC 3.0.0

Get product visibility options.

Хуки из функции

Возвращает

Массив.

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

wc_get_product_visibility_options();

Список изменений

С версии 3.0.0 Введена.

Код wc_get_product_visibility_options() WC 6.4.1

function wc_get_product_visibility_options() {
	return apply_filters(
		'woocommerce_product_visibility_options',
		array(
			'visible' => __( 'Shop and search results', 'woocommerce' ),
			'catalog' => __( 'Shop only', 'woocommerce' ),
			'search'  => __( 'Search results only', 'woocommerce' ),
			'hidden'  => __( 'Hidden', 'woocommerce' ),
		)
	);
}