Base_Route extends WP_REST_Controller implements Route
Abstract class for REST routes.
Tags
Interfaces, Classes and Traits
- Route
- Represents a REST route accessible via the REST API.
Table of Contents
- __construct() : mixed
- get_base() : string
- Get the REST route base which is appended to the namespace (e.g. mybase).
- get_endpoint() : string
- Get the full endpoint including namespace (e.g. myplugin/v1/mybase).
- register() : mixed
Methods
__construct()
public
__construct(mixed $namespace) : mixed
Parameters
- $namespace : mixed
Return values
mixed —get_base()
Get the REST route base which is appended to the namespace (e.g. mybase).
public
get_base() : string
Return values
string —The REST base.
get_endpoint()
Get the full endpoint including namespace (e.g. myplugin/v1/mybase).
public
get_endpoint() : string
Return values
string —The full REST route.
register()
public
register() : mixed