Quick_View_Route
extends Base_Route
in package
implements
Registerable
REST handler for the 'get quick view' route.
Tags
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
$rest_base
protected
mixed
$rest_base
= 'view'
$post_globals
private
mixed
$post_globals
= array()
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 —register()
public
register() : mixed
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