Automattic\WooCommerce\Internal\ShopperLists
ShopperListsController::get_supported_slugs
Slugs of every supported list type, regardless of feature-flag state.
Method of the class: ShopperListsController{}
No Hooks.
Returns
String[].
Usage
$ShopperListsController = new ShopperListsController(); $ShopperListsController->get_supported_slugs(): array;
Changelog
| Since 10.9.0 | Introduced. |
ShopperListsController::get_supported_slugs() ShopperListsController::get supported slugs code WC 11.0.1
public function get_supported_slugs(): array {
return array_keys( self::SUPPORTED_LISTS );
}