Quick_View_Route extends Base_Route implements Registerable

REST handler for the 'get quick view' route.

Tags
author

Barn2 Plugins [email protected]

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Registerable
An object that can be registered with WordPress via the Plugin API, i.e. add_action() and add_filter().

Table of Contents

$rest_base  : mixed
$post_globals  : mixed
__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).
get_quick_view()  : mixed
register()  : mixed
check_prerequisites()  : mixed
reset_post_globals()  : mixed
setup_post_globals()  : mixed

Properties

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.

get_quick_view()

public get_quick_view(WP_REST_Request $request) : mixed
Parameters
$request : WP_REST_Request
Return values
mixed

check_prerequisites()

private check_prerequisites() : mixed
Return values
mixed

reset_post_globals()

private reset_post_globals() : mixed
Return values
mixed

setup_post_globals()

private setup_post_globals(mixed $the_product) : mixed
Parameters
$the_product : mixed
Return values
mixed

Search results