Back to skills

wp-abilities-api

development

Covers the WordPress Abilities API introduced in WP 6.9, including registering abilities and categories in PHP, exposing them via the `wp-abilities/v1` REST namespace, and consuming them in JavaScript

Setup & Installation

npx skills add https://github.com/WordPress/wp-abilities-api --skill wp-abilities-api
or paste the link and ask your coding assistant to install it
https://github.com/WordPress/wp-abilities-api
View on GitHub

What This Skill Does

Covers the WordPress Abilities API introduced in WP 6.9, including registering abilities and categories in PHP, exposing them via the `wp-abilities/v1` REST namespace, and consuming them in JavaScript with `@wordpress/abilities`. Also handles debugging when abilities don't appear on the client or in REST responses. Without this skill, you'd piece together hook timing, REST namespace details, and JS package wiring from scattered Trac tickets and changelogs — this consolidates the full registration-to-consumption path in one place.

When to use it

  • Working with wp abilities api functionality
  • Implementing wp abilities api features
  • Debugging wp abilities api related issues