Opened 3 years ago
Last modified 7 months ago
#58849 new enhancement
Document supported $args for register_rest_route()
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Future Release | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | REST API | Keywords: | has-patch 2nd-opinion |
| Focuses: | docs | Cc: |
Change History (9)
This ticket was mentioned in Slack in #core-restapi by spacedmonkey. View the logs.
3 years ago
#4
@
9 months ago
I agreed with @johnbillion, documenting the $args parameter is complex due to its flexibility as it can accept a variety of configurations, including nested arrays for complex parameters, making it challenging to provide exhaustive documentation.
This ticket was mentioned in PR #9287 on WordPress/wordpress-develop by @vladimiraus.
7 months ago
#5
- Keywords has-patch added; needs-patch removed
- [ ] Added documentation for
register_rest_route()parameter:$args - [ ] Improved documentation for
register_rest_route()parameter:$route
Note: See
TracTickets for help on using
tickets.
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.