wp-rest-api
This handles the full lifecycle of WordPress REST API work: registering custom routes with proper namespacing, exposing custom po…
What it does
- create or update REST routes/endpoints
- debug 401/403/404 errors or permission/nonce issues
- add custom fields/meta to REST responses
- expose custom post types or taxonomies via REST
- implement schema + argument validation
- adjust response links/embedding/pagination
- Repo root + target plugin/theme/mu-plugin (path to entrypoint).
Requirements & configuration
- Use this skill when you need to:
- If you need unfiltered post content (e.g., ToC plugins injecting HTML), request ?context=edit to access content.raw (auth required). Pair with fields=content.raw to keep responses small.
Configuration: OPTIONS
Derived from the skill's own SKILL.md documentation · extracted 2026-07-23
This handles the full lifecycle of WordPress REST API work: registering custom routes with proper namespacing, exposing custom post...
Source
Repository: https://github.com/wordpress/agent-skills
wp-rest-api FAQ
What does the wp-rest-api skill do?
Use when building, extending, or debugging WordPress REST API endpoints/routes: register_rest_route, WP_REST_Controller/controller classes, schema/argument validation, permission_callback/authentication, response shaping, register_rest_field/register_meta, or exposing CPTs/taxonomies via show_in_rest. create or update REST routes/endpoints debug 401/403/404 errors or permission/nonce issues
What does wp-rest-api require?
Use this skill when you need to: If you need unfiltered post content (e.g., ToC plugins injecting HTML), request ?context=edit to access content.raw (auth required). Pair with fields=content.raw to keep responses small. Configuration keys: OPTIONS.
How do I install wp-rest-api?
Run: npx -y skills add https://github.com/wordpress/agent-skills --skill wp-rest-api --agent claude-code — the source lives at github.com/wordpress/agent-skills.
Maintain wp-rest-api?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[wp-rest-api on getagentictools](https://getagentictools.com/skills/wordpress-agent-skills-wp-rest-api?ref=badge) npx agentictools info skills/wordpress-agent-skills-wp-rest-api The second line is the CLI lookup for this page — handy in READMEs and docs.