Make WordPress Core

Opened 15 months ago

Last modified 15 months ago

#58849 new enhancement

Document supported $args for register_rest_route()

Reported by: danielbachhuber's profile danielbachhuber Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version:
Component: REST API Keywords: needs-patch
Focuses: docs Cc:

Description

$args seems awfully sparse for how important it is:

https://github.com/WordPress/gutenberg/assets/36432/3d6f6ef2-3e15-4c0a-9bb9-9c3b4822c118

It would be nice if all of the supported values were documented.

Change History (3)

#1 @swissspidy
15 months ago

  • Focuses docs added

This ticket was mentioned in Slack in #core-restapi by spacedmonkey. View the logs.


15 months ago

#3 @johnbillion
15 months ago

  • Keywords good-first-bug removed

I looked at documenting this recently but because the args array can take either an array of args or effectively multiple arrays of those args, I got disheartened trying to write the docs.

Note: See TracTickets for help on using tickets.