Constants

OPTION_GROUP

OPTION_GROUP ='options'

SETTING_ACCEPT_ALL_FOR_BOTS

SETTING_ACCEPT_ALL_FOR_BOTS =RCB_OPT_PREFIX . '-accept-all-for-bots'

SETTING_RESPECT_DO_NOT_TRACK

SETTING_RESPECT_DO_NOT_TRACK =RCB_OPT_PREFIX . '-respect-do-not-track'

SETTING_SAVE_IP

SETTING_SAVE_IP =RCB_OPT_PREFIX . '-save-ip'

SETTING_EPRIVACY_USA

SETTING_EPRIVACY_USA =RCB_OPT_PREFIX . '-eprivacy-usa'

SETTING_AGE_NOTICE

SETTING_AGE_NOTICE =RCB_OPT_PREFIX . '-age-notice'

SETTING_LIST_SERVICES_NOTICE

SETTING_LIST_SERVICES_NOTICE =RCB_OPT_PREFIX . '-list-services-notice'

DEFAULT_ACCEPT_ALL_FOR_BOTS

DEFAULT_ACCEPT_ALL_FOR_BOTS =true

DEFAULT_RESPECT_DO_NOT_TRACK

DEFAULT_RESPECT_DO_NOT_TRACK =false

DEFAULT_SAVE_IP

DEFAULT_SAVE_IP =false

DEFAULT_EPRIVACY_USA

DEFAULT_EPRIVACY_USA =false

DEFAULT_AGE_NOTICE

DEFAULT_AGE_NOTICE =true

DEFAULT_LIST_SERVICES_NOTICE

DEFAULT_LIST_SERVICES_NOTICE =true

TRANSIENT_SCHEDULE_CONSENTS_DELETION

TRANSIENT_SCHEDULE_CONSENTS_DELETION =RCB_OPT_PREFIX . '-schedule-consents-deletion'

Properties

Methods

overrideEnableOptionsAutoload()

overrideEnableOptionsAutoload()

overrideRegister()

overrideRegister()

isEPrivacyUSAEnabled()

isEPrivacyUSAEnabled()

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.

isAcceptAllForBots()

isAcceptAllForBots(): boolean

Check if bots should acceppt all cookies automatically.

Returns

boolean

isRespectDoNotTrack()

isRespectDoNotTrack(): boolean

Check if "Do not Track" header is respected.

Returns

boolean

isSaveIpEnabled()

isSaveIpEnabled(): boolean

Check if IPs should be saved in plain in database.

Returns

boolean

isAgeNoticeEnabled()

isAgeNoticeEnabled(): boolean

Check if age notice hint is enabled

Returns

boolean

isListServicesNoticeEnabled()

isListServicesNoticeEnabled(): boolean

Check if list-services notice hint is enabled

Returns

boolean

getCookieDuration()

getCookieDuration(): integer

Get the cookie duration for the consent cookies.

Returns

integer

getCookieVersion()

getCookieVersion(): integer

Get the cookie version for the consent cookies.

Returns

integer

getConsentDuration()

getConsentDuration(): integer

Get the consent duration.

Returns

integer

option_cookie_duration()

option_cookie_duration(mixed  $value)

The cookie duration may not be greater than 365 days.

Parameters

mixed $value

option_consent_duration()

option_consent_duration(mixed  $value)

The consent duration may not be greater than 120 months.

Parameters

mixed $value

update_option_consent_transient_deletion()

update_option_consent_transient_deletion()

Delete transient when settings are updated

getInstance()

getInstance()

Get singleton instance.

new_version_installation_after_2_17_3()

new_version_installation_after_2_17_3(string|false  $installed)

Deactivate "Naming of all services in first view" as it should not be activated automatically for already existing users.

Parameters

string|false $installed

new_version_installation_after_3_0_1()

new_version_installation_after_3_0_1(string|false  $installed)

Revert to cookie version 1 for users already using RCB.

Parameters

string|false $installed

__construct()

__construct()

C'tor.