\DevOwl\RealUtils\crossCrossRealCookieBanner

Cross-selling for Real Cookie Banner.

Do not use any constants as they are not available when the plugin is not active.

Summary

Methods
Properties
Constants
getSlug()
getMeta()
skip()
getAssetsUrl()
actionCounter()
forceHide()
dismiss()
getPluginConstantPrefix()
setupConstants()
hasGdprPluginInstalled()
hasGdprBlog()
No public properties found
NEXT_POPUP
NEXT_POPUP_IN_PRO
SLUG
FILE_LITE
FILE_PRO
NON_GDPR_PLUGINS
GDPR_PLUGINS
SALE_READY_GDPR_PLUGINS
GDPR_LANGUAGES
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

NEXT_POPUP

NEXT_POPUP ='+7 days'

NEXT_POPUP_IN_PRO

NEXT_POPUP_IN_PRO ='+14 days'

SLUG

SLUG ='real-cookie-banner'

FILE_LITE

FILE_LITE ='real-cookie-banner/index.php'

FILE_PRO

FILE_PRO ='real-cookie-banner-pro/index.php'

NON_GDPR_PLUGINS

NON_GDPR_PLUGINS =array('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')

GDPR_PLUGINS

GDPR_PLUGINS =array('cookiebot', 'iubenda-cookie-law-solution', 'gdpr-cookie-compliance', 'cookie-law-info', 'gdpr-cookie-consent', 'cookie-notice', 'pixelmate')

SALE_READY_GDPR_PLUGINS

SALE_READY_GDPR_PLUGINS =array('borlabs-cookie', 'complianz-gdpr', 'complianz-gdpr-premium')

GDPR_LANGUAGES

GDPR_LANGUAGES =array('de')

Methods

getSlug()

getSlug(): string

Documented in AbstractCrossSelling.

Returns

string

getMeta()

getMeta(): string

Documented in AbstractCrossSelling.

Returns

string

skip()

skip(): boolean

Documented in AbstractCrossSelling.

Returns

boolean

getAssetsUrl()

getAssetsUrl(string  $path = '')

Get the external URL to assets.

Parameters

string $path

actionCounter()

actionCounter(string  $action,boolean  $increment = false): integer

Get or update the action counter for a given action.

Parameters

string $action
boolean $increment

Returns

integer

forceHide()

forceHide(string  $action,boolean  $force = false): boolean

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

Parameters

string $action
boolean $force

Returns

boolean

dismiss()

dismiss(string  $action,boolean  $force): boolean

Dismiss a cross popup for a product.

Parameters

string $action
boolean $force

Returns

boolean

getPluginConstantPrefix()

getPluginConstantPrefix(): string

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

Returns

string

setupConstants()

setupConstants()

Make sure the REAL_UTILS constants are available.

hasGdprPluginInstalled()

hasGdprPluginInstalled(array<mixed,string>  $plugins)

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

Parameters

array<mixed,string> $plugins

Use one of the class constants

hasGdprBlog()

hasGdprBlog()

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