Automattic\WooCommerce\Enums

CatalogVisibility{}finalWC 1.0

Enum class for all the catalog visibility values.

No Hooks.

Usage

$CatalogVisibility = new CatalogVisibility();
// use class methods

Methods

No Methods in class.

CatalogVisibility{} code WC 9.9.4

final class CatalogVisibility {
	/**
	 * Product is visible on both shop and search results.
	 *
	 * @var string
	 */
	const VISIBLE = 'visible';

	/**
	 * Product is visible on the shop page only.
	 */
	const CATALOG = 'catalog';

	/**
	 * Product visible in the search results only.
	 */
	const SEARCH = 'search';

	/**
	 * Product is invisible on both shop and search results, but can still be accessed directly.
	 */
	const HIDDEN = 'hidden';
}