WP_REST_Widgets_Controller::retrieve_widgets()protectedWP 5.9.0

Looks for "lost" widgets once per request.

{} It's a method of the class: WP_REST_Widgets_Controller{}

No Hooks.

Return

null. Nothing.

Usage

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

Notes

Changelog

Since 5.9.0 Introduced.

Code of WP_REST_Widgets_Controller::retrieve_widgets() WP 6.0

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