Skip to main content

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

NameTypeDescription
$rate_limit_decisionnull|\WP_ErrorInitial value or denial error.
$namestringAbility name.
$inputarrayValidated input, or an empty array for input-less abilities.

Since

  • 1.23.0

Source

Defined in Abilities/Manager.php at line 632