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

# Filter: gk/foundation/abilities/rate-limit

Filters whether an ability invocation should be rate-limited.

Return null to continue. Return WP_Error to fail closed and reject the invocation with that error. Runs for every wrapped permission callback before the disabled-state check.

## Parameters

| Name | Type | Description |
|------|------|-------------|
| $rate_limit_decision | `null\|\WP_Error` | Initial value or denial error. |
| $name | `string` | Ability name. |
| $input | `array` | Validated input, or an empty array for input-less abilities. |

### Since

- 1.23.0

### Source

Defined in `Abilities/Manager.php` at line 632

