Make WordPress Core

Opened 10 months ago

Last modified 10 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:


$args seems awfully sparse for how important it is:

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

Change History (3)

#1 @swissspidy
10 months ago

  • Focuses docs added

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

10 months ago

#3 @johnbillion
10 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.