WP_REST_Widgets_Controller::retrieve_widgets() WordPress Method
The WP_REST_Widgets_Controller::retrieve_widgets() method is used to retrieve a list of widgets for a given sidebar.
WP_REST_Widgets_Controller::retrieve_widgets() #
Looks for “lost” widgets once per request.
Description
See also
Source
File: wp-includes/rest-api/endpoints/class-wp-rest-widgets-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. |