TCF
in package
Uses
UtilsProvider
Handle TCF compatibility REST services.
Table of Contents
Methods
- getPluginConstantPrefix() : string
- Get the prefix of this plugin so composer packages can dynamically build other constant values on it.
- instance() : mixed
- New instance.
- permission_callback() : mixed
- Check if user is allowed to call this service requests.
- rest_api_init() : mixed
- Register endpoints.
- rest_prepare_vendor() : mixed
- Modify the response of the TCF vendor configuration Custom Post Type:
- routeDeclarations() : mixed
- See API docs.
- routeGvlPut() : mixed
- See API docs.
- routeVendors() : mixed
- See API docs.
- __construct() : mixed
- C'tor.
Methods
getPluginConstantPrefix()
Get the prefix of this plugin so composer packages can dynamically build other constant values on it.
public
getPluginConstantPrefix() : string
Tags
Return values
stringinstance()
New instance.
public
static instance() : mixed
permission_callback()
Check if user is allowed to call this service requests.
public
permission_callback() : mixed
rest_api_init()
Register endpoints.
public
rest_api_init() : mixed
rest_prepare_vendor()
Modify the response of the TCF vendor configuration Custom Post Type:
public
rest_prepare_vendor(WP_REST_Response $response, WP_Post $post) : mixed
- Vendor model
- Blocker ID covering this TCF Vendor configuration
Parameters
- $response : WP_REST_Response
-
The response object.
- $post : WP_Post
-
Post object.
routeDeclarations()
See API docs.
public
routeDeclarations() : mixed
APIYes
Tags
routeGvlPut()
See API docs.
public
routeGvlPut() : mixed
APIYes
Tags
routeVendors()
See API docs.
public
routeVendors() : mixed
APIYes
Tags
__construct()
C'tor.
private
__construct() : mixed