wp-rest-api
Handles everything related to the WordPress REST API layer: registering custom routes and controller classes, validating request arguments with JSON Schema, managing authentication with nonces or application passwords, and exposing custom post types and taxonomies via REST endpoints.
Setup & Installation
What This Skill Does
Handles everything related to the WordPress REST API layer: registering custom routes and controller classes, validating request arguments with JSON Schema, managing authentication with nonces or application passwords, and exposing custom post types and taxonomies via REST endpoints.
Rather than manually tracing WordPress hook order and schema rules, this skill handles the full lifecycle from route registration to response shaping and authentication, covering the edge cases that the official handbook buries in footnotes.
When to use it
- Registering a custom namespace endpoint to serve data to a decoupled React front end
- Exposing a custom post type in the wp/v2 namespace by setting show_in_rest
- Adding computed or meta fields to REST responses with register_rest_field
- Debugging 401 and 403 errors caused by missing nonces or misconfigured permission callbacks
- Restricting a custom route to users with specific capabilities via permission_callback
Similar Skills
ios-application-dev
A reference guide for building iOS apps with UIKit, SnapKit, and SwiftUI.
fullstack-dev
A workflow guide for building full-stack applications, covering backend architecture, frontend-backend integration, auth, real-time features, and production hardening.
android-native-dev
A reference guide for Android native development covering Kotlin/Compose patterns, Material Design 3 specs, Gradle project setup, and build troubleshooting.
frontend-dev
Builds complete frontend pages by combining UI design, scroll animations, AI-generated media assets, and copywriting into a single workflow.
