WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\RestApi

Server::register_rest_routes() public WC 1.0

Register REST API routes.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of Server::register_rest_routes() WC 5.9.0

public function register_rest_routes() {
	foreach ( $this->get_rest_namespaces() as $namespace => $controllers ) {
		foreach ( $controllers as $controller_name => $controller_class ) {
			$this->controllers[ $namespace ][ $controller_name ] = new $controller_class();
			$this->controllers[ $namespace ][ $controller_name ]->register_routes();
		}
	}
}