---
id: gk-foundation-abilities-register
title: "Filter - gk/foundation/abilities/register"
sidebar_label: "gk/foundation/abilities/register"
tags:
  - "1.23.0"
---

# Filter: gk/foundation/abilities/register

Filters the abilities to register with WordPress.

## Parameters

| Name | Type | Description |
|------|------|-------------|
| $abilities | `array[]` | Array of ability configurations. Each configuration is an array: |
| ↳ $name | `string` | Ability name as <code>namespace/ability-name</code>. |
| ↳ $label | `string` | Human-readable label. |
| ↳ $description | `string` | What the ability does. |
| ↳ $category | `string` | Primary category slug. |
| ↳ $execute_callback | `callable` | Executes the ability. |
| ↳ $permission_callback | `callable` | Authorizes execution. |
| ↳ $input_schema | `array` | Optional. JSON Schema describing input. |
| ↳ $output_schema | `array` | Optional. JSON Schema describing output. |
| ↳ $categories | `string[]` | Optional. Category slugs; the first is used as primary. |
| ↳ $meta | `array` | Optional. Ability meta. Set <code>command_palette</code> to true to surface the ability in the Command Palette. |
| $manager | `\Manager` | Manager instance for fluent registration. |

### Since

- 1.23.0

### Source

Defined in `Abilities/Framework.php` at line 258

