WP_REST_Widgets_Controller::get_collection_params() – Gets the list of collection params.
You appear to be a bot. Output may be restricted
Description
Gets the list of collection params.
Usage
$array[] = WP_REST_Widgets_Controller::get_collection_params();
Parameters
Returns
array[]
Source
File name: wordpress/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php
Lines:
1 to 9 of 9
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', ), ); }