CrossRealCookieBanner
        
        extends AbstractCrossSelling
    
    
            
            in package
            
        
    
    
    
Cross-selling for Real Cookie Banner.
Tags
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
FILE_LITE
    public
        mixed
    FILE_LITE
    = 'real-cookie-banner/index.php'
    
    
    
FILE_PRO
    public
        mixed
    FILE_PRO
    = 'real-cookie-banner-pro/index.php'
    
    
    
GDPR_LANGUAGES
    public
        mixed
    GDPR_LANGUAGES
    = ['de']
    
    
    
GDPR_PLUGINS
    public
        mixed
    GDPR_PLUGINS
    = ['cookiebot', 'iubenda-cookie-law-solution', 'gdpr-cookie-compliance', 'cookie-law-info', 'gdpr-cookie-consent', 'cookie-notice', 'pixelmate']
    
    
    
NEXT_POPUP
    public
        mixed
    NEXT_POPUP
    = '+7 days'
    
    
    
NEXT_POPUP_IN_PRO
    public
        mixed
    NEXT_POPUP_IN_PRO
    = '+14 days'
    
    
    
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']
    
    
    
SLUG
    public
        mixed
    SLUG
    = 'real-cookie-banner'
    
    
    
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
intdismiss()
Dismiss a cross popup for a product.
    public
                    dismiss(string $action, bool $force) : bool
    Parameters
- $action : string
- $force : bool
Return values
boolforceHide()
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
boolgetAssetsUrl()
Get the external URL to assets.
    public
                    getAssetsUrl([string $path = '' ]) : mixed
    Parameters
- $path : string = ''
getMeta()
Documented in AbstractCrossSelling.
    public
                    getMeta() : string
    Tags
Return values
stringgetPluginConstantPrefix()
Get the prefix of this package so we can utils package natively.
    public
                    getPluginConstantPrefix() : string
    Return values
stringgetSlug()
Documented in AbstractCrossSelling.
    public
                    getSlug() : string
    Tags
Return values
stringhasGdprBlog()
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
    skip()
Documented in AbstractCrossSelling.
    public
                    skip() : bool