TCF
Table of Contents
Properties
- $previousActive : bool
- Save the state of currently active so we can calculate the timestamps for (first) accepted time.
Methods
- clearGvl() : mixed
- getAcceptedTime() : mixed
- getFirstAcceptedTime() : mixed
- getGvl() : mixed
- getGvlDownloadTime() : mixed
- getScopeOfConsent() : mixed
- getVendorConfigurations() : mixed
- isActive() : mixed
- localize() : mixed
- Localize frontend.
- overrideEnableOptionsAutoload() : mixed
- overrideRegister() : mixed
- probablyUpdateGvl() : mixed
- rest_pre_get_setting() : mixed
- Output the accepted time as ISO string instead of mysql formatted string.
- updated_option_active() : mixed
- The option to enable TCF got updated, let's save the time of consent.
- updateGvl() : mixed
Properties
$previousActive
Save the state of currently active so we can calculate the timestamps for (first) accepted time.
private
bool
$previousActive
= null
Methods
clearGvl()
public
clearGvl() : mixed
getAcceptedTime()
public
getAcceptedTime() : mixed
getFirstAcceptedTime()
public
getFirstAcceptedTime() : mixed
getGvl()
public
getGvl() : mixed
getGvlDownloadTime()
public
getGvlDownloadTime() : mixed
getScopeOfConsent()
public
getScopeOfConsent() : mixed
getVendorConfigurations()
public
getVendorConfigurations() : mixed
isActive()
public
isActive() : mixed
localize()
Localize frontend.
public
localize(array<string|int, mixed> $arr, string $context) : mixed
Parameters
- $arr : array<string|int, mixed>
- $context : string
overrideEnableOptionsAutoload()
public
overrideEnableOptionsAutoload() : mixed
overrideRegister()
public
overrideRegister() : mixed
probablyUpdateGvl()
public
probablyUpdateGvl() : mixed
rest_pre_get_setting()
Output the accepted time as ISO string instead of mysql formatted string.
public
rest_pre_get_setting(mixed $result, string $name, array<string|int, mixed> $args) : mixed
Parameters
- $result : mixed
-
Value to use for the requested setting. Can be a scalar matching the registered schema for the setting, or null to follow the default get_option() behavior.
- $name : string
-
Setting name (as shown in REST API responses).
- $args : array<string|int, mixed>
-
Arguments passed to register_setting() for this setting.
updated_option_active()
The option to enable TCF got updated, let's save the time of consent.
public
updated_option_active(WP_REST_Response $response, WP_REST_Request $request) : mixed
Parameters
- $response : WP_REST_Response
- $request : WP_REST_Request
updateGvl()
public
updateGvl([mixed $force = false ]) : mixed
Parameters
- $force : mixed = false