Automattic\WooCommerce\Internal\Admin\Notes

OnlineClothingStore::is_in_fashion_industry()private staticWC 1.0

Returns whether the industries includes fashion-apparel-accessories.

Метод класса: OnlineClothingStore{}

No Hooks.

Return

true|false. Whether the industries includes fashion-apparel-accessories.

Usage

$result = OnlineClothingStore::is_in_fashion_industry( $industries );
$industries(array) (required)
The industries to search.

Code of OnlineClothingStore::is_in_fashion_industry() WC 7.1.0

private static function is_in_fashion_industry( $industries ) {
	foreach ( $industries as $industry ) {
		if ( 'fashion-apparel-accessories' === $industry['slug'] ) {
			return true;
		}
	}

	return false;
}