Documentation

Consent
in package
Uses UtilsProvider

Consent API

Table of Contents

Constants

CONSENT_ALL_ITEMS_PER_PAGE  = 10

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.
routeDelete()  : mixed
See API docs.
routeDeleteAll()  : mixed
See API docs.
routeDeleteClear()  : mixed
See API docs.
routeGet()  : mixed
See API docs.
routeGetAll()  : mixed
See API docs.
routeGetAllReferer()  : mixed
See API docs.
routePost()  : mixed
See API docs.
routePostDynamicPredecision()  : mixed
See API docs.
__construct()  : mixed
C'tor.

Constants

public mixed CONSENT_ALL_ITEMS_PER_PAGE = 10

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

routeDelete()

See API docs.

public routeDelete(WP_REST_Request $request) : mixed
APIYes
Parameters
$request : WP_REST_Request
Tags
apiName

Delete

apiGroup

Consent

apiVersion

1.0.0

routeDeleteAll()

See API docs.

public routeDeleteAll() : mixed
APIYes
Tags
apiHeader

{string} X-WP-Nonce

apiName

DeleteAll

apiGroup

Consent

apiVersion

1.0.0

apiPermission

manage_options

routeDeleteClear()

See API docs.

public routeDeleteClear(WP_REST_Request $request) : mixed
APIYes
Parameters
$request : WP_REST_Request
Tags
apiHeader

{string} X-WP-Nonce

apiParam

{string} cookies A comma separated list of cookie ids which should be opt-out

apiName

DeleteClear

apiGroup

Consent

apiVersion

1.0.0

routeGet()

See API docs.

public routeGet(WP_REST_Request $request) : mixed
APIYes
Parameters
$request : WP_REST_Request
Tags
apiHeader

{string} X-WP-Nonce

apiName

Get

apiGroup

Consent

apiVersion

1.0.0

routeGetAll()

See API docs.

public routeGetAll(WP_REST_Request $request) : mixed
APIYes
Parameters
$request : WP_REST_Request
Tags
apiHeader

{string} X-WP-Nonce

apiParam

{number} offset

apiParam

{number} [per_page=10]

apiParam

{string} [uuid]

apiParam

{string} [ip]

apiParam

{string} [referer]

apiParam

{string} [from] From date in format YYYY-MM-DD

apiParam

{string} [to] From date in format YYYY-MM-DD

apiParam

{string} [context]

apiParam

{string} [migration] Allows to start a migration process (e.g. when switching from RCB v4 to v5)

apiName

GetAll

apiGroup

Consent

apiVersion

1.0.0

apiPermission

manage_options

routeGetAllReferer()

See API docs.

public routeGetAllReferer(WP_REST_Request $request) : mixed
APIYes
Parameters
$request : WP_REST_Request
Tags
apiHeader

{string} X-WP-Nonce

apiName

GetAllReferer

apiGroup

Consent

apiVersion

1.0.0

apiPermission

manage_options

routePost()

See API docs.

public routePost(WP_REST_Request $request) : mixed
APIYes
Parameters
$request : WP_REST_Request
Tags
apiParam

{array} decision

apiParam

{string} buttonClicked

apiParam

{boolean} [dummy]

apiParam

{boolean} [markAsDoNotTrack]

apiParam

{number} [viewPortWidth=0]

apiParam

{number} [viewPortHeight=0]

apiParam

{number} [blocker=0]

apiParam

{string} [blockerThumbnail]

apiParam

{string} [tcfString]

apiParam

{array} [gcmConsent]

apiParam

{string} [recorderJsonString]

apiParam

{string} [uiView]

apiParam

{string} [createdClientTime]

apiParam

{string} [setCookies=true]

apiParam

{string} [referer]

apiName

Create

apiGroup

Consent

apiVersion

1.0.0

routePostDynamicPredecision()

See API docs.

public routePostDynamicPredecision(WP_REST_Request $request) : mixed
APIYes
Parameters
$request : WP_REST_Request
Tags
apiParam

{number} [viewPortWidth=0]

apiParam

{number} [viewPortHeight=0]

apiParam

{string} [tcfStringImplicitEssentials]

apiName

CalculateDynamicPredecision

apiGroup

Consent

apiVersion

1.0.0

__construct()

C'tor.

private __construct() : mixed

        
On this page

Search results