WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\RestApi

Server::get_rest_namespaces() protected WC 1.0

Get API namespaces - new namespaces should be registered here.

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

Return

Array. List of Namespaces and Main controller classes.

Usage

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

Code of Server::get_rest_namespaces() WC 5.9.0

protected function get_rest_namespaces() {
	return apply_filters(
		'woocommerce_rest_api_get_rest_namespaces',
		array(
			'wc/v1'        => $this->get_v1_controllers(),
			'wc/v2'        => $this->get_v2_controllers(),
			'wc/v3'        => $this->get_v3_controllers(),
			'wc-telemetry' => $this->get_telemetry_controllers(),
		)
	);
}