WordPress at a glance
функция не описана

WP_REST_Server::__construct() public WP 4.4.0

Instantiates the REST server.

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

Хуков нет.

Возвращает

Null. Ничего.

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

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

Changelog

Since 4.4.0 Introduced.

Код WP_REST_Server::__construct() WP 5.5.1

<?php
public function __construct() {
	$this->endpoints = array(
		// Meta endpoints.
		'/' => array(
			'callback' => array( $this, 'get_index' ),
			'methods'  => 'GET',
			'args'     => array(
				'context' => array(
					'default' => 'view',
				),
			),
		),
	);
}