WP_REST_Sidebars_Controller::retrieve_widgets()protectedWP 5.9.0

Looks for "lost" widgets once per request.

Method of the class: WP_REST_Sidebars_Controller{}

No Hooks.

Return

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->retrieve_widgets();

Notes

Changelog

Since 5.9.0 Introduced.

WP_REST_Sidebars_Controller::retrieve_widgets() code WP 6.6.2

protected function retrieve_widgets() {
	if ( ! $this->widgets_retrieved ) {
		retrieve_widgets();
		$this->widgets_retrieved = true;
	}
}