Wordpress/WpProvider.php
public function registerRestRoute($namespace, $route, $args = [], $override = false)
    {
        return $this->callGlobalFunction('register_rest_route', [$namespace, $route, $args, $override]);
    }
public function registerRestRoute($namespace, $route, $args = [], $override = false)
    {
        return $this->callGlobalFunction('register_rest_route', [$namespace, $route, $args, $override]);
    }
public function registerRestRoute ( $ namespace , $ route , $ args = [ ] , $ override = false ) { return $ this -> callGlobalFunction ( 'register_rest_route' , [ $ namespace , $ route , $ args , $ override ] ) ; }
Registers a REST API route
@param $namespace
@param $route
@param array $args
@param bool $override
@return mixed
@throws \ErrorException
Registers a REST API route