wp-abilities-api

Community

Define and expose WordPress Abilities API entries.

AuthorHungNth
Version1.0.0
Installs0

System Documentation

What problem does it solve?

WordPress developers often struggle to implement and expose the Abilities API in a consistent, re-usable way across PHP back-ends and front-end clients. This skill provides a structured approach to registering categories and abilities, wiring them to the correct lifecycle hooks, and exposing them via REST so that clients can query capability metadata.

Core Features & Use Cases

  • Category & Ability Registration: Register categories and abilities in the correct lifecycle hooks to ensure proper initialization.
  • REST Exposure: Mark abilities with meta.show_in_rest and verify endpoints under wp-json/wp-abilities/v1.
  • Client Consumption: Use @wordpress/abilities on the frontend to read and enforce permissions.

Quick Start

Define a new category and an ability in your plugin, then hook them into wp_abilities_api_categories_init and wp_abilities_api_init respectively. Ensure the ability metadata includes meta.show_in_rest and verify the endpoints under wp-json/wp-abilities/v1 return the expected data.

Dependency Matrix

Required Modules

None required

Components

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/HungNth/wordpress-notify-nth/archive/main.zip#wp-abilities-api

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.