wp-abilities-api

Register WordPress Abilities API categories and abilities via REST.

1|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/javiercasares/cloudfest-wporgdownload --skill wp-abilities-api-javiercasares
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wp-abilities-api
Source: https://github.com/javiercasares/cloudfest-wporgdownload/tree/main/.claude/skills/wp-abilities-api
Command: npx skills add https://github.com/javiercasares/cloudfest-wporgdownload --skill wp-abilities-api-javiercasares

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill helps developers implement and expose WordPress Abilities API registrations, enabling structured permission management and client-side checks via REST.

Core Features & Use Cases

  • Category & ability registration: Define categories and abilities with proper metadata and REST exposure.
  • REST exposure: Make abilities available under the wp-abilities/v1 namespace for client access.
  • Diagnostic guidance: Troubleshoot visibility issues where abilities or categories do not appear in REST or JS.

Quick Start

In your plugin bootstrap, add the example registration hooks from references/php-registration.md to register categories first and abilities second, then test the REST endpoints at wp-json/wp-abilities/v1/ to verify availability.

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 the REST API?

To register WordPress abilities and expose them via REST, hook into wp_abilities_api_categories_init for categories and wp_abilities_api_init for abilities, setting meta.show_in_rest for visibility under the wp-abilities/v1 namespace.

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

WordPress abilities may not appear in REST if meta.show_in_rest is not enabled or if categories are not registered before abilities using the correct init hooks during plugin bootstrap.

What is the WordPress Abilities API used for in plugin development?

The WordPress Abilities API is used for structured permission management and controlled access, enabling client-side checks via REST endpoints within core or custom plugin projects.

How do I test if my WordPress abilities are available through the REST API?

Test WordPress abilities REST availability by accessing the wp-json/wp-abilities/v1/ endpoint after adding registration hooks to your plugin bootstrap, verifying that categories and abilities appear correctly.

Do I need to register categories before abilities in the WordPress Abilities API?

Yes, in the WordPress Abilities API, categories must be registered before abilities using their respective init hooks to ensure proper structure and REST exposure within the wp-abilities/v1 namespace.

Can I use the WordPress Abilities API for client-side permission checks?

Yes, the WordPress Abilities API supports client-side permission checks by exposing registered categories and abilities through REST endpoints for controlled access management.