WP_REST_Widgets_Controller::__construct()publicWP 5.8.0

Widgets controller constructor.

Метод класса: WP_REST_Widgets_Controller{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WP_REST_Widgets_Controller = new WP_REST_Widgets_Controller();
$WP_REST_Widgets_Controller->__construct();

Список изменений

С версии 5.8.0 Введена.

Код WP_REST_Widgets_Controller::__construct() WP 6.4.3

public function __construct() {
	$this->namespace = 'wp/v2';
	$this->rest_base = 'widgets';
}