WP_REST_Widgets_Controller::get_collection_params()
Gets the list of collection params.
Return
(array[])
Source
File: wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php
public function get_collection_params() {
		return array(
			'context' => $this->get_context_param( array( 'default' => 'view' ) ),
			'sidebar' => array(
				'description' => __( 'The sidebar to return widgets for.' ),
				'type'        => 'string',
			),
		);
	}  Changelog
| Version | Description | 
|---|---|
| 5.8.0 | Introduced. | 
    © 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
    https://developer.wordpress.org/reference/classes/wp_rest_widgets_controller/get_collection_params