Documentation

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
codeCoverageIgnore

It only returns a string with the constant prefix

Return values
string

instance()

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
apiHeader

{string} X-WP-Nonce

apiName

GetDeclarations

apiGroup

TCF

apiPermission

Pro only

apiVersion

1.0.0

routeGvlPut()

See API docs.

public routeGvlPut() : mixed
APIYes
Tags
apiHeader

{string} X-WP-Nonce

apiName

UpdateGvl

apiGroup

TCF

apiPermission

Pro only

apiVersion

1.0.0

routeVendors()

See API docs.

public routeVendors() : mixed
APIYes
Tags
apiHeader

{string} X-WP-Nonce

apiName

GetVendors

apiGroup

TCF

apiPermission

Pro only

apiVersion

1.0.0

__construct()

C'tor.

private __construct() : mixed

        
On this page

Search results