\Barn2\Plugin\WC_Restaurant_Ordering\Rest\RoutesProduct_Modal_Route

REST handler for the product modal route.

Summary

Methods
Properties
Constants
__construct()
get_base()
get_endpoint()
register()
register_routes()
get_modal()
No public properties found
No constants found
No protected methods found
$rest_base
N/A
check_prerequisites()
No private properties found
N/A

Properties

$rest_base

$rest_base : 

Type

Methods

__construct()

__construct(  $namespace) 

Parameters

$namespace

get_base()

get_base() : string

Get the REST route base which is appended to the namespace (e.g. mybase).

Returns

string —

The REST base.

get_endpoint()

get_endpoint() : string

Get the full endpoint including namespace (e.g. myplugin/v1/mybase).

Returns

string —

The full REST route.

register()

register() 

register_routes()

register_routes() 

get_modal()

get_modal(\WP_REST_Request  $request) 

Parameters

\WP_REST_Request $request

check_prerequisites()

check_prerequisites()