wp-abilities-api

Register WordPress Abilities and categories and expose them via REST endpoints.

1|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/zenbuapps/zenbu-powers --skill wp-abilities-api-zenbuapps
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wp-abilities-api
Source: https://github.com/zenbuapps/zenbu-powers/tree/main/skills/wp-abilities-api
Command: npx skills add https://github.com/zenbuapps/zenbu-powers --skill wp-abilities-api-zenbuapps

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers register WordPress Abilities and their categories and expose them through REST endpoints so clients can discover and use them.

Core Features & Use Cases

  • Register ability categories and abilities in PHP with stable IDs, human-readable labels, and descriptions
  • Expose registered abilities to client code via REST wp-abilities/v1 and through the wp-abilities client API provided by the WordPress Abilities package
  • Diagnose visibility issues when an ability or category does not appear in REST or client code

Quick Start

Register a new category and an ability in your plugin using the wp_abilities_api_categories_init and wp_abilities_api_init hooks, then verify REST exposure at wp-json/wp-abilities/v1.

Frequently Asked Questions about wp-abilities-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I register WordPress abilities and expose them via REST API?

To register WordPress abilities via REST API, use the wp_abilities_api_categories_init and wp_abilities_api_init hooks in your PHP plugin to define categories and abilities, ensuring show_in_rest meta flags are set so they are exposed at wp-json/wp-abilities/v1 for client consumption.

Why are my WordPress abilities not showing up in the REST API?

WordPress abilities may not show up in the REST API if categories are not registered before abilities using the correct hooks, or if show_in_rest meta flags are missing. Ensure wp_abilities_api_categories_init fires before wp_abilities_api_init to diagnose visibility issues.

Can I use the WordPress Abilities API in my existing plugin or theme?

Yes, you can integrate the WordPress Abilities API into any plugin or theme. Register ability categories and abilities with stable IDs and labels in PHP, and enable client-side consumption through the WordPress Abilities package without requiring external dependencies.

What is the WordPress Abilities API and when do I need it?

The WordPress Abilities API is a system to register structured abilities and categories in PHP and expose them via REST endpoints. You need it when building features that require client-side discovery and consumption of registered abilities through the wp-abilities/v1 endpoint.

Does the WordPress Abilities API require specific hooks for category registration?

Yes, the WordPress Abilities API enforces correct hook usage, requiring categories to be registered before abilities. You must use the wp_abilities_api_categories_init hook for categories and wp_abilities_api_init for abilities to ensure proper REST exposure and client consumption.

What's the best way to structure WordPress abilities for client-side consumption?

The best way to structure WordPress abilities for client-side consumption is to assign stable IDs, human-readable labels, descriptions, and categories during PHP registration. This ensures clients can discover and use them reliably through the WordPress Abilities package and REST endpoints.