Filter: gk/foundation/abilities/products
Filters the GravityKit product declarations.
Each product declares its product-level ability data in one payload: the MCP tool-name prefix and the ability categories (product category and scope subcategories) to register. Foundation contributes no declarations of its own.
Parameters
| Name | Type | Description |
|---|---|---|
| $products | array | Product declarations keyed by product slug (e.g. gravityview). Each declaration is an array: |
| ↳ $mcp_prefix | string | Short MCP tool-name prefix (e.g. gv). Required — a missing prefix triggers _doing_it_wrong() and the full product slug is used as a fallback. |
| ↳ $categories | array | Optional. Ability categories to register, keyed by slug; each entry has label and description. |
Since
- 1.23.0
Source
Defined in Abilities/Manager.php at line 117