Registers a route to the server.
public register_route ( string $namespace, string $route, array $route_args, boolean $override = false ) | ||
$namespace | string | Namespace. |
$route | string | The REST route. |
$route_args | array | Route arguments. |
$override | boolean | Optional. Whether the route should be overridden if it already exists. Default false. |