Constants

OPTION_GROUP

OPTION_GROUP ='options'

SETTING_TCF

SETTING_TCF =RCB_OPT_PREFIX . '-tcf'

SETTING_TCF_PUBLISHER_CC

SETTING_TCF_PUBLISHER_CC =RCB_OPT_PREFIX . '-tcf-publisher-cc'

SETTING_TCF_ACCEPTED_TIME

SETTING_TCF_ACCEPTED_TIME =RCB_OPT_PREFIX . '-tcf-accepted-time'

SETTING_TCF_FIRST_ACCEPTED_TIME

SETTING_TCF_FIRST_ACCEPTED_TIME =RCB_OPT_PREFIX . '-tcf-first-accepted-time'

SETTING_TCF_GVL_DOWNLOAD_TIME

SETTING_TCF_GVL_DOWNLOAD_TIME =RCB_OPT_PREFIX . '-tcf-gvl-download-time'

OPTION_TCF_GVL_NEXT_DOWNLOAD_TIME

OPTION_TCF_GVL_NEXT_DOWNLOAD_TIME =RCB_OPT_PREFIX . '-tcf-gvl-next-download-time'

DEFAULT_TCF

DEFAULT_TCF =false

DEFAULT_TCF_PUBLISHER_CC

DEFAULT_TCF_PUBLISHER_CC =''

DEFAULT_TCF_FIRST_ACCEPTED_TIME

DEFAULT_TCF_FIRST_ACCEPTED_TIME =''

DEFAULT_TCF_ACCEPTED_TIME

DEFAULT_TCF_ACCEPTED_TIME =''

DEFAULT_TCF_GVL_DOWNLOAD_TIME

DEFAULT_TCF_GVL_DOWNLOAD_TIME =''

Properties

$previousActive

$previousActive :boolean

Save the state of currently active so we can calculate the timestamps for (first) accepted time.

Type

boolean

Methods

overrideEnableOptionsAutoload()

overrideEnableOptionsAutoload()

overrideRegister()

overrideRegister()

probablyUpdateGvl()

probablyUpdateGvl()

updateGvl()

updateGvl(  $force = false)

Parameters

$force

clearGvl()

clearGvl()

updated_option_active()

updated_option_active(\DevOwl\RealCookieBanner\lite\settings\WP_REST_Response  $response,\WP_REST_Request  $request)

The option to enable TCF got updated, let's save the time of consent.

Parameters

\DevOwl\RealCookieBanner\lite\settings\WP_REST_Response $response
\WP_REST_Request $request

rest_pre_get_setting()

rest_pre_get_setting(mixed  $result,string  $name,array  $args)

Output the accepted time as ISO string instead of mysql formatted string.

Parameters

mixed $result

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.

string $name

Setting name (as shown in REST API responses).

array $args

Arguments passed to register_setting() for this setting.

localize()

localize(array  $arr,string  $context)

Localize frontend.

Parameters

array $arr
string $context

isActive()

isActive()

getPublisherCountryCode()

getPublisherCountryCode()

getFirstAcceptedTime()

getFirstAcceptedTime()

getAcceptedTime()

getAcceptedTime()

getGvlDownloadTime()

getGvlDownloadTime()

getScopeOfConsent()

getScopeOfConsent()

getNextUpdateTime()

getNextUpdateTime()

Changes to the Global Vendor List are published weekly at 5:00 PM Central European Time on Thursdays.

getPluginConstantPrefix()

getPluginConstantPrefix(): string

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

Returns

string

enableOptionsAutoload()

enableOptionsAutoload()

Initially `add_option` to avoid autoloading issues.

register()

register()

Register settings.

new_version_installation()

new_version_installation()

When a new version of Real Cookie Banner got installed, automatically download the new GVL.

__construct()

__construct()

C'tor.