\DevOwl\RealCookieBanner\lite\restTCF

Handle TCF compatibility REST services.

Summary

Methods
Properties
Constants
getPluginConstantPrefix()
rest_api_init()
permission_callback()
routeDeclarations()
routeVendors()
routeGvlPut()
rest_prepare_vendor()
instance()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
__construct()
No private properties found
N/A

Methods

getPluginConstantPrefix()

getPluginConstantPrefix(): string

Get the prefix of this plugin so composer packages can dynamically build other constant values on it.

Returns

string

rest_api_init()

rest_api_init()

Register endpoints.

permission_callback()

permission_callback()

Check if user is allowed to call this service requests.

routeDeclarations()

routeDeclarations()

See API docs.

routeVendors()

routeVendors()

See API docs.

routeGvlPut()

routeGvlPut()

See API docs.

rest_prepare_vendor()

rest_prepare_vendor(\WP_REST_Response  $response,\DevOwl\RealCookieBanner\lite\rest\WP_Post  $post)

Modify the response of the TCF vendor configuration Custom Post Type:

  • Vendor model
  • Blocker ID covering this TCF Vendor configuration

Parameters

\WP_REST_Response $response

The response object.

\DevOwl\RealCookieBanner\lite\rest\WP_Post $post

Post object.

instance()

instance()

New instance.

__construct()

__construct()

C'tor.