WordPress.org

Making WordPress.org

Opened 15 months ago

Last modified 15 months ago

#1935 new task

Add a section for using the WP REST API into the Plugin Developer Handbook.

Reported by: ChopinBach Owned by:
Milestone: Priority: normal
Component: Developer Hub Keywords:
Cc:

Description

Hi DevHub Team,

Not entirely sure if I am opening a ticket in the right place. Anyways, the Plugin Handbook should feature sections covering how to use the current REST API infrastructure introduced in WordPress 4.4. It can go over creating basic endpoints through route registration. Serving requests internally with rest_do_request() (personal favorite). It can also go over how to create forward facing Controller classes for the endpoints so if/when WP_REST_Controller is merged into core endpoints can quickly take advantage of that functionality as well. I will examine how the other handbooks approach documentation and will do my best to match that style.

Change History (2)

#1 @DrewAPicture
15 months ago

  • Type changed from enhancement to task

For what it's worth, I asked @ChopinBach to open this ticket so we have a concrete place to track progress outside of the plugin developer handbook spreadsheet.

This ticket was mentioned in Slack in #meta-devhub by coffee2code. View the logs.


15 months ago

Note: See TracTickets for help on using tickets.