Skip to content

Commit 48e6469

Browse files
authored
Fix WP_REST_Posts_Controller link (#104)
1 parent 581b8da commit 48e6469

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extending-the-rest-api/controller-classes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ In most cases you will want to create a base controller class as either an `inte
281281

282282
The WordPress REST API follows a deliberate design pattern for its internal classes, which may be categorized as either *infrastructure* or *endpoint* classes.
283283

284-
Endpoint classes encapsulate the functional logic necessary to perform [CRUD](https://en.wikipedia.org/wiki/Create,_read,_update_and_delete) operations on WordPress resources. WordPress exposes many REST API endpoints (such as [`WP_REST_Posts_Controller`](https://developer.wordpress.org/reference/classes/wp_rest_controller/)), but as discussed above all endpoints extend from a common base controller class:
284+
Endpoint classes encapsulate the functional logic necessary to perform [CRUD](https://en.wikipedia.org/wiki/Create,_read,_update_and_delete) operations on WordPress resources. WordPress exposes many REST API endpoints (such as [`WP_REST_Posts_Controller`](https://developer.wordpress.org/reference/classes/wp_rest_posts_controller/)), but as discussed above all endpoints extend from a common base controller class:
285285

286286
* [`WP_REST_Controller`](https://developer.wordpress.org/reference/classes/wp_rest_controller/): The base class for all WordPress core endpoints. This class is designed to represent a consistent pattern for manipulating WordPress resources. When interacting with an endpoint that implements `WP_REST_Controller`, a HTTP client can expect each endpoint to behave in a consistent way.
287287

0 commit comments

Comments
 (0)