wp-abilities-api
OfficialDefine and expose WordPress abilities via REST.
AuthorWPdoaction
Version1.0.0
Installs0
System Documentation
What problem does it solve?
WordPress projects often need structured, permission-based access to features. This Skill provides a guide to register and expose WordPress Abilities API entries so client code can reliably check permissions and UI gating.
Core Features & Use Cases
- Category & Ability Registration: Implement wp_register_ability_category and wp_register_ability in PHP to define capabilities.
- REST Exposure: Expose abilities via the wp-abilities/v1 REST endpoints for clients.
- Client Consumption: Use @wordpress/abilities in JS to query and enforce permissions in UIs.
- Use Case: A plugin needs a site-info ability accessible to admin clients but hidden from standard users.
Quick Start
Install and configure your WP project to load the skill, then add registration examples to a plugin or mu-plugin and ensure the wp_abilities_api_categories_init and wp_abilities_api_init hooks fire.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: wp-abilities-api Download link: https://github.com/WPdoaction/animal-shelter/archive/main.zip#wp-abilities-api Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.