Loading...
Loading...
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.
npx skill4agent add wordpress/agent-skills wp-rest-apimy-plugin/v1node skills/wp-project-triage/scripts/detect_wp_project.mjsregister_rest_routeWP_REST_Controllerrest_api_initshow_in_restrest_baserest_controller_classwp/v2show_in_rest => truerest_baserest_controller_classreferences/custom-content-types.mdregister_rest_route()rest_api_initWP_REST_Controllerreferences/routes-and-endpoints.mdreferences/schema.mdvendor/v1wp/*permission_callback__return_trueWP_REST_Server::READABLE/CREATABLE/EDITABLE/DELETABLErest_ensure_response()WP_REST_ResponseWP_Errorstatusreferences/routes-and-endpoints.mdargstypedefaultrequiredvalidate_callbacksanitize_callbackrest_validate_value_from_schemarest_sanitize_value_from_schema$_GET$_POSTWP_REST_Requestreferences/schema.mdregister_rest_fieldregister_metashow_in_restobjectarrayshow_in_rest.schema?context=editcontent.raw_fields=content.rawWP_REST_Response::add_link()references/responses-and-fields.mdX-WP-Noncewp_restpermission_callbackreferences/authentication.mdLink<link rel="https://api.w.org/">_fields_embed_method_envelopeper_pagereferences/discovery-and-params.md/wp-json/OPTIONSwp/v2show_in_restrest_api_init?rest_route=permission_callback_doing_it_wrongpermission_callback__return_trueargsshow_in_restcustom-fields