Automattic\WooCommerce\RestApi
Server::get_rest_namespaces()
Get API namespaces - new namespaces should be registered here.
Method of the class: Server{}
Hooks from the method
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() 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(), ) ); }