OPTION_GROUP
OPTION_GROUP ='options'
Bypass the cookie banner for a specific set of countries.
PREDEFINED_COUNTRY_LISTS =array('GDPR' => array('AT', 'BE', 'BG', 'HR', 'CY', 'CZ', 'DK', 'EE', 'FI', 'FR', 'DE', 'GR', 'HU', 'IE', 'IS', 'IT', 'LI', 'LV', 'LT', 'LU', 'MT', 'NL', 'NO', 'PL', 'PT', 'RO', 'SK', 'SI', 'ES', 'SE'), 'CCPA' => array('US'))
A list of predefined lists for e.g. `GDPR` or `CCPA`.
$me :\DevOwl\RealCookieBanner\settings\CountryBypass
Singleton instance.
updated_option_active(\DevOwl\RealCookieBanner\lite\settings\WP_REST_Response $response,\WP_REST_Request $request)
The option to enable Country Bypass got updated, let's automatically download the country database.
\DevOwl\RealCookieBanner\lite\settings\WP_REST_Response | $response | |
\WP_REST_Request | $request |
rest_pre_get_setting(mixed $result,string $name,array $args)
Output the download time as ISO string instead of mysql formatted string.
mixed | $result | Value to use for the requested setting. Can be a scalar matching the registered schema for the setting, or null to follow the default get_option() behavior. |
string | $name | Setting name (as shown in REST API responses). |
array | $args | Arguments passed to register_setting() for this setting. |
getInstance(): \DevOwl\RealCookieBanner\settings\CountryBypass
Get singleton instance.