Automattic\WooCommerce\Internal\ShopperLists

ShopperListsController::get_enabled_slugspublicWC 1.0

Slugs of all currently-enabled lists, in declaration order.

Method of the class: ShopperListsController{}

No Hooks.

Returns

String[].

Usage

$ShopperListsController = new ShopperListsController();
$ShopperListsController->get_enabled_slugs(): array;

ShopperListsController::get_enabled_slugs() code WC 11.0.1

public function get_enabled_slugs(): array {
	return array_keys(
		array_filter(
			self::SUPPORTED_LISTS,
			static fn( string $feature ): bool => FeaturesUtil::feature_is_enabled( $feature )
		)
	);
}