Route extends Registerable

Represents a REST route accessible via the REST API.

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Table of Contents

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()  : void
Register this object with WordPress.

Methods

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()

Register this object with WordPress.

public register() : void
Return values
void

Search results