OPTION_NAME_CLICKED_ACTIONS
OPTION_NAME_CLICKED_ACTIONS =RCB_OPT_PREFIX . '-migration-actions-clicked'
Migration for Major version 3.
DELETE_OPTIONS_TEXTS =array(\DevOwl\RealCookieBanner\view\customize\banner\Texts::SETTING_HEADLINE, \DevOwl\RealCookieBanner\view\customize\banner\Texts::SETTING_DESCRIPTION, \DevOwl\RealCookieBanner\view\customize\banner\Texts::SETTING_EPRIVACY_USA, \DevOwl\RealCookieBanner\view\customize\banner\Texts::SETTING_AGE_NOTICE, \DevOwl\RealCookieBanner\view\customize\banner\Texts::SETTING_AGE_NOTICE_BLOCKER, \DevOwl\RealCookieBanner\view\customize\banner\Texts::SETTING_LIST_SERVICES_NOTICE, \DevOwl\RealCookieBanner\view\customize\banner\Texts::SETTING_CONSENT_FORWARDING, \DevOwl\RealCookieBanner\view\customize\banner\Texts::SETTING_ACCEPT_ALL, \DevOwl\RealCookieBanner\view\customize\banner\Texts::SETTING_ACCEPT_ESSENTIALS, \DevOwl\RealCookieBanner\view\customize\banner\Texts::SETTING_ACCEPT_INDIVIDUAL, \DevOwl\RealCookieBanner\view\customize\banner\Texts::SETTING_POWERED_BY_TEXT, \DevOwl\RealCookieBanner\view\customize\banner\Texts::SETTING_BLOCKER_HEADLINE, \DevOwl\RealCookieBanner\view\customize\banner\Texts::SETTING_BLOCKER_LINK_SHOW_MISSING, \DevOwl\RealCookieBanner\view\customize\banner\Texts::SETTING_BLOCKER_LOAD_BUTTON, \DevOwl\RealCookieBanner\view\customize\banner\Texts::SETTING_BLOCKER_ACCEPT_INFO, \DevOwl\RealCookieBanner\view\customize\banner\individual\Texts::SETTING_HEADLINE, \DevOwl\RealCookieBanner\view\customize\banner\individual\Texts::SETTING_DESCRIPTION, \DevOwl\RealCookieBanner\view\customize\banner\individual\Texts::SETTING_SAVE, \DevOwl\RealCookieBanner\view\customize\banner\individual\Texts::SETTING_SHOW_MORE, \DevOwl\RealCookieBanner\view\customize\banner\individual\Texts::SETTING_HIDE_MORE)
addAction(string $id,string $title,string $description,array $args = array())
Register a new action which can be made for this migration.
Arguments:
[linkText] (string)
Can be null
to disable the link[confirmText] (string)
The user needs to confirm this migration with something like "Are you sure?"[callback] (callback|string)
Can be null
, a callback which is executed when clicking the link or a direct URL[previewImage] (string)
Absolute URL to preview imagestring | $id | Unique action ID |
string | $title | |
string | $description | |
array | $args | Arguments, see above |
deleteCustomizerTexts(array<mixed,string> $languages,array<mixed,string> $ids): array<mixed,string>
Delete customizer texts for given languages and option keys.
array<mixed,string> | $languages | |
array<mixed,string> | $ids |
Deleted option keys
fetchBlockersWithBetterPotentialVisualType(): array<mixed,string>
Calculate existing blockers with potential visual type other than `default` from the templates and cache the result to a transient to avoid the calculation again.