WP_REST_Widgets_Controller::get_collection_params(): array[]

Gets the list of collection params.


Return

array[]


Top ↑

Source

File: wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php. View all references

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',
		),
	);
}


Top ↑

Changelog

Changelog
Version Description
5.8.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.