Automattic\WooCommerce\RestApi

Server::init()publicWC 1.0

Hook into WordPress ready to init the REST API as needed.

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

Хуков нет.

Возвращает

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

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

$Server = new Server();
$Server->init();

Код Server::init() WC 8.7.0

public function init() {
	add_action( 'rest_api_init', array( $this, 'register_rest_routes' ), 10 );

	\WC_REST_System_Status_V2_Controller::register_cache_clean();
}