WP_REST_Widgets_Controller::retrieve_widgets()protectedWP 5.9.0

Looks for "lost" widgets once per request.

Method of the class: WP_REST_Widgets_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_Widgets_Controller::retrieve_widgets() code WP 6.5.2

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