wp-abilities-api

Register WordPress Abilities API definitions and expose them to REST endpoints.

2|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/joseconti/mcp-skills --skill wp-abilities-api-joseconti
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wp-abilities-api
Source: https://github.com/joseconti/mcp-skills/tree/main/wp-abilities-api
Command: npx skills add https://github.com/joseconti/mcp-skills --skill wp-abilities-api-joseconti

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill helps teams register and expose WordPress Abilities API definitions (abilities and categories) to REST endpoints and client code, enabling consistent permission checks and UI gating.

Core Features & Use Cases

  • Register categories and abilities in PHP to establish a structured permissions model.
  • Expose to REST via wp-abilities/v1 so clients can discover and enforce capabilities.
  • Consume in JavaScript using @wordpress/abilities for client-side feature gating.
  • Debug and verify REST availability, category/ability presence, and correct meta (e.g., show_in_rest).

Quick Start

Register a sample ability in PHP and verify it appears under the wp-abilities REST endpoints.

Frequently Asked Questions about wp-abilities-api

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

FAQPage Schema
How do I expose WordPress custom abilities to the REST API for client-side permission checks?

To expose WordPress abilities to the REST API, register abilities and categories in PHP with proper meta such as show_in_rest, making them discoverable at wp-json/wp-abilities/v1 endpoints for client-side permission checks.

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

The WordPress Abilities API is a structured permissions model that registers definitions and categories to REST endpoints, enabling persistent discovery and consistent UI gating for client-side feature access control.

How do I consume registered WordPress abilities in JavaScript using @wordpress/abilities?

To consume registered WordPress abilities in JavaScript using @wordpress/abilities, fetch definitions exposed at the wp-abilities/v1 REST endpoint to enforce client-side feature gating and capability checks.

Does the WordPress Abilities API require specific meta to show categories in REST endpoints?

Yes, registering WordPress abilities requires setting proper meta such as show_in_rest to ensure categories and ability definitions are correctly exposed and discoverable via the wp-json/wp-abilities/v1 REST endpoints.

Can I use the WordPress Abilities API with custom plugins and themes?

Yes, the WordPress Abilities API is applicable to WP core, plugins, and themes, allowing you to register custom abilities and categories in PHP and expose them consistently to client code via REST.

Why are my registered WordPress abilities not appearing in the wp-json REST endpoint?

Registered WordPress abilities may not appear in the wp-json REST endpoint if proper meta like show_in_rest is missing during PHP registration, preventing persistent discovery and exposure at wp-abilities/v1.