Used By
Used By | Description |
---|---|
wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php: WP_REST_Post_Statuses_Controller::register_routes() | Registers the routes for the objects of the controller. |
Retrieves the query params for collections.
(array) Collection parameters.
File: wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php
public function get_collection_params() { return array( 'context' => $this->get_context_param( array( 'default' => 'view' ) ), ); }
Version | Description |
---|---|
4.7.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_rest_post_statuses_controller/get_collection_params