Automattic\WooCommerce\RestApi

Server::get_rest_namespaces()protectedWC 1.0

Get API namespaces - new namespaces should be registered here.

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();

Server::get_rest_namespaces() code WC 8.7.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(),
		)
	);
}