Skip to content
Kitbay
Submit

wp-abilities-api

GPL-2.0-or-laterUpdated on Nov 9, 20262,352GitHub stars

A WordPress project skill for code that uses the Abilities API, the core system for registering things a site can do so other clients can find and call them.

What the skill teaches

A WordPress project skill for code that uses the Abilities API, the core system for registering things a site can do so other clients can find and call them. It takes the agent through checking that the API is available, finding existing usage, registering categories and abilities in PHP with their metadata and permission callbacks, confirming they appear in the abilities REST endpoints, and calling them from JavaScript, with verification and debugging steps. It targets WordPress 7.0 or later.

Capabilities

  • Register abilities and categories in PHP
  • Expose abilities through the REST API
  • Call abilities from JavaScript
  • Check permission callbacks