WordPress 7.1 introduces four filters that allow plugins to customise the execution lifecycle of abilities registered with the Abilities API.

The Abilities API previously provided the wp_before_execute_ability and wp_after_execute_ability actions. These actions are useful for observing execution, but they cannot change its behaviour.

The new filters allow developers to:

Short-circuit ability execution. Transform normalised input. Apply additional authorisation rules. Transform or recover an execution result.

These changes were introduced in Trac ticket #64989 and changeset [62397].