Description
wp-abilities-api is an agent skill that covers the WordPress Abilities API, introduced in WordPress 6.9. The Abilities API lets a plugin declare what it can do, so that permissions are capability-based and can be checked in one consistent way. The skill walks through the full path from registration to use: registering abilities and categories in PHP, exposing them over the wp-abilities/v1 REST namespace, and reading them in JavaScript with the @wordpress/abilities package. It also covers debugging, for the common case where an ability does not appear on the client or in REST responses, which usually comes down to hook timing or the show_in_rest setting. Typical tasks include registering a plugin-specific ability with REST exposure so the block editor can gate its interface, grouping related abilities under a shared category for a custom admin feature, and reading ability data in a JavaScript component to show or hide controls. It is for plugin developers who want to replace ad hoc capability checks with the Abilities API. You install it with the skills command from the WordPress/agent-skills repository, and the source is public on GitHub.…
Highlights
- Register abilities and categories in PHP
- Expose abilities on the wp-abilities/v1 REST namespace
- Consume abilities in JavaScript with @wordpress/abilities
- Debug abilities missing from REST or the client
Ratings & Reviews
No ratings yet
Be the first to rate WordPress/wp-abilities-api.
People also visit
WordPress/wp-abilities-api FAQ
What does this skill do?
It guides registering, exposing and consuming WordPress abilities, and debugging them when they do not appear.
How do I install it?
Run npx skills add https://github.com/WordPress/agent-skills --skill wp-abilities-api, or paste the repository link and ask your coding assistant to install it.
Who is it for?
WordPress plugin developers who want capability-based permissions and gated block editor UI.
What WordPress version introduced it?
The page says the Abilities API was introduced in WordPress 6.9.
Is it free?
The skill is in a public repository on GitHub and the page shows no price, so it is open source.
What are the best WordPress/wp-abilities-api alternatives?
Popular alternatives to WordPress/wp-abilities-api include wp-abilities-verify, wp-abilities-api and WordPress/wp-rest-api. See all WordPress/wp-abilities-api alternatives









