Skip to content
Kitbay
Submit

wp-rest-api

GPL-2.0-or-laterUpdated on Nov 9, 20262,352GitHub stars

A WordPress project skill for building or debugging REST API endpoints.

What the skill teaches

A WordPress project skill for building or debugging REST API endpoints. It covers locating existing REST code, choosing between custom routes and core endpoints, registering routes with namespaces, methods and permission callbacks, validating and sanitising arguments, shaping responses with fields and links, register_rest_field and register_meta, exposing custom post types and taxonomies, authentication, and client behaviour like discovery, pagination and embedding. Reference notes are included.

Capabilities

  • Register REST routes with permission callbacks
  • Validate and sanitise request arguments
  • Add fields and meta to REST responses
  • Expose custom post types over REST