Documentation

CrossRealCookieBanner extends AbstractCrossSelling
in package

Cross-selling for Real Cookie Banner.

Tags
see
https://app.clickup.com/2088/v/dc/218-92/218-1114

Table of Contents

Constants

FILE_LITE  = 'real-cookie-banner/index.php'
FILE_PRO  = 'real-cookie-banner-pro/index.php'
GDPR_LANGUAGES  = ['de']
GDPR_PLUGINS  = ['cookiebot', 'iubenda-cookie-law-solution', 'gdpr-cookie-compliance', 'cookie-law-info', 'gdpr-cookie-consent', 'cookie-notice', 'pixelmate']
NEXT_POPUP  = '+7 days'
NEXT_POPUP_IN_PRO  = '+14 days'
NON_GDPR_PLUGINS  = ['luckywp-cookie-notice-gdpr', 'ninja-gdpr-compliance', 'ninja-gdpr', 'gdpr-compliance-by-supsystic', 'surbma-gdpr-proof-google-analytics', 'easy-wp-cookie-popup', 'smart-cookie-kit', 'italy-cookie-choices', 'shapepress-dsgvo', 'uk-cookie-consent']
SALE_READY_GDPR_PLUGINS  = ['borlabs-cookie', 'complianz-gdpr', 'complianz-gdpr-premium']
SLUG  = 'real-cookie-banner'

Methods

actionCounter()  : int
Get or update the action counter for a given action.
dismiss()  : bool
Dismiss a cross popup for a product.
forceHide()  : bool
Get or update the hidden action status for a given action. This can not be undone if once set.
getAssetsUrl()  : mixed
Get the external URL to assets.
getMeta()  : string
Documented in AbstractCrossSelling.
getPluginConstantPrefix()  : string
Get the prefix of this package so we can utils package natively.
getSlug()  : string
Documented in AbstractCrossSelling.
hasGdprBlog()  : mixed
Check if the current WordPress instance generally needs a GDPR solution.
hasGdprPluginInstalled()  : mixed
Check if the current WordPress instance has a plugin installed, which is not GDPR-compliant.
setupConstants()  : mixed
Make sure the REAL_UTILS constants are available.
skip()  : bool
Documented in AbstractCrossSelling.

Constants

GDPR_PLUGINS

public mixed GDPR_PLUGINS = ['cookiebot', 'iubenda-cookie-law-solution', 'gdpr-cookie-compliance', 'cookie-law-info', 'gdpr-cookie-consent', 'cookie-notice', 'pixelmate']

NON_GDPR_PLUGINS

public mixed NON_GDPR_PLUGINS = ['luckywp-cookie-notice-gdpr', 'ninja-gdpr-compliance', 'ninja-gdpr', 'gdpr-compliance-by-supsystic', 'surbma-gdpr-proof-google-analytics', 'easy-wp-cookie-popup', 'smart-cookie-kit', 'italy-cookie-choices', 'shapepress-dsgvo', 'uk-cookie-consent']

SALE_READY_GDPR_PLUGINS

public mixed SALE_READY_GDPR_PLUGINS = ['borlabs-cookie', 'complianz-gdpr', 'complianz-gdpr-premium']

Methods

actionCounter()

Get or update the action counter for a given action.

public actionCounter(string $action[, bool $increment = false ]) : int
Parameters
$action : string
$increment : bool = false
Return values
int

dismiss()

Dismiss a cross popup for a product.

public dismiss(string $action, bool $force) : bool
Parameters
$action : string
$force : bool
Return values
bool

forceHide()

Get or update the hidden action status for a given action. This can not be undone if once set.

public forceHide(string $action[, bool $force = false ]) : bool
Parameters
$action : string
$force : bool = false
Return values
bool

getAssetsUrl()

Get the external URL to assets.

public getAssetsUrl([string $path = '' ]) : mixed
Parameters
$path : string = ''

getMeta()

Documented in AbstractCrossSelling.

public getMeta() : string
Tags
codeCoverageIgnore
Return values
string

getPluginConstantPrefix()

Get the prefix of this package so we can utils package natively.

public getPluginConstantPrefix() : string
Return values
string

getSlug()

Documented in AbstractCrossSelling.

public getSlug() : string
Tags
codeCoverageIgnore
Return values
string

hasGdprBlog()

Check if the current WordPress instance generally needs a GDPR solution.

public hasGdprBlog() : mixed

hasGdprPluginInstalled()

Check if the current WordPress instance has a plugin installed, which is not GDPR-compliant.

public hasGdprPluginInstalled(array<string|int, string> $plugins) : mixed
Parameters
$plugins : array<string|int, string>

Use one of the class constants

setupConstants()

Make sure the REAL_UTILS constants are available.

public static setupConstants() : mixed

        
On this page

Search results