WP_REST_Sidebars_Controller::retrieve_widgets() WordPress Method
The WP_REST_Sidebars_Controller::retrieve_widgets() method is used to retrieve the list of widgets for a sidebar. This is useful for displaying a list of widgets in a sidebar management screen.
WP_REST_Sidebars_Controller::retrieve_widgets() #
Looks for “lost” widgets once per request.
Description
See also
Source
File: wp-includes/rest-api/endpoints/class-wp-rest-sidebars-controller.php
protected function retrieve_widgets() { if ( ! $this->widgets_retrieved ) { retrieve_widgets(); $this->widgets_retrieved = true; } }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.9.0 | Introduced. |