wp-rest-api

Community

Build, debug, and extend WordPress REST APIs.

Authorjaviercasares
Version1.0.0
Installs0

System Documentation

What problem does it solve?

WordPress developers building or debugging REST API endpoints can rapidly implement routes, controllers, input validation, and response shaping, while ensuring proper authentication and data exposure via REST.

Core Features & Use Cases

  • Register REST routes with namespaces and versions using register_rest_route
  • Build or extend WP_REST_Controller classes and show_in_rest metadata for CPTs and taxonomies
  • Validate and sanitize request args using JSON schema and REST API patterns
  • Debug authorization issues (401/403) and respond with proper WP_Error structures
  • Use cases include creating custom endpoints for plugins or themes, exposing custom post types to REST, and secure data exposure

Quick Start

To begin, reference the skill to add a new REST endpoint using a namespace vendor/v1 and a route /plugin/v1/my-endpoint with a GET method and a permission_callback.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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-rest-api
Download link: https://github.com/javiercasares/cloudfest-wporgdownload/archive/main.zip#wp-rest-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 471,000+ vetted skills library on demand.