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