Configuration
BORLABS_COOKIE_CACHE_PATH
This directive allows you to specify an alternative storage path for Borlabs Cookie cache data.
Example:
define('BORLABS_COOKIE_CACHE_PATH', '/var/www/example.internal/my-cache');BORLABS_COOKIE_CACHE_URL
This directive allows you to specify an alternative storage URL for Borlabs Cookie cache data.
Example:
define('BORLABS_COOKIE_CACHE_URL', 'https://example.internal/my-cache');BORLABS_COOKIE_IGNORE_ISO_639_1
This directive allows the use of language codes that extend beyond the standard two-character ISO 639-1 format. By default, language codes are limited to two characters. However, when this constant is set to true, extended language codes can be used, such as pt_br for Brazilian Portuguese and pt_pt for European Portuguese.
Example:
define('BORLABS_COOKIE_IGNORE_ISO_639_1', true);BORLABS_COOKIE_STORAGE_PATH
Diese Direktive ermöglicht die Angabe eines alternativen Speicherpfads für Borlabs Cookie Speicherdaten.
Example:
define('BORLABS_COOKIE_STORAGE_PATH', '/var/www/example.internal/my-storage');BORLABS_COOKIE_STORAGE_URL
Diese Direktive ermöglicht die Angabe einer alternativen Speicher-URL für Borlabs Cookie Speicherdaten.
Example:
define('BORLABS_COOKIE_STORAGE_URL', 'https://example.internal/my-storage');Debugging & Development
BORLABS_COOKIE_DEV_MODE_DISABLE_CSS_CACHING
This directive disables caching of Borlabs Cookie CSS files. A new set of CSS rules is generated each time the page is reloaded.
Example:
define('BORLABS_COOKIE_DEV_MODE_DISABLE_CSS_CACHING', true);BORLABS_COOKIE_DEV_MODE_DISABLE_SSL_VERIFY
This directive disables SSL verification and allows the use of self-signed SSL certificates. It also permits the use of .local domains in WordPress API requests.
Example:
define('BORLABS_COOKIE_DEV_MODE_DISABLE_SSL_VERIFY', true);BORLABS_COOKIE_DEV_MODE_ENABLE_ALL_COMPATIBILITY_PATCHES
This directive enables the loading of all compatibility patches located in the src/compatibility-patches-development directory.
Example:
define('BORLABS_COOKIE_DEV_MODE_ENABLE_ALL_COMPATIBILITY_PATCHES', true);BORLABS_COOKIE_DEV_MODE_ENABLE_ASSET_TIMESTAMPS
This directive adds timestamps to the Borlabs Cookie CSS and JavaScript configuration files.
Example:
define('BORLABS_COOKIE_DEV_MODE_ENABLE_ASSET_TIMESTAMPS', true);BORLABS_COOKIE_DEV_MODE_ENABLE_DEBUG_EXTENDED
This directive enables extended debug logging when "Debug Logging" is enabled.
Example:
define('BORLABS_COOKIE_DEV_MODE_ENABLE_DEBUG_EXTENDED', true);BORLABS_COOKIE_DEV_MODE_ENABLE_DEBUG_INTERFACE
This directive enables the "System" > "Debug" menu item.
Example:
define('BORLABS_COOKIE_DEV_MODE_ENABLE_DEBUG_INTERFACE', true);BORLABS_COOKIE_DEV_MODE_ENABLE_JAVASCRIPT_LOGS
This directive allows JavaScript processes to be logged in the browser console.
Example:
define('BORLABS_COOKIE_DEV_MODE_ENABLE_JAVASCRIPT_LOGS', true);BORLABS_COOKIE_DEV_MODE_ENABLE_LIBRARY_GO_TO_DETAILS_ROUTE
This directive enables direct links to package details within the Library.
Example:
define('BORLABS_COOKIE_DEV_MODE_ENABLE_LIBRARY_GO_TO_DETAILS_ROUTE', true);Example:
https://example.internal/wp-admin/admin.php?page=borlabs-cookie-library&action=go-to-details&borlabs-service-package-key=elementor&noheader=1BORLABS_COOKIE_DEV_MODE_ENABLE_LOCALIZATION_CHECKER_INTERFACE
This directive enables the "System" > "Localization Checker" menu item.
Example:
define('BORLABS_COOKIE_DEV_MODE_ENABLE_LOCALIZATION_CHECKER_INTERFACE', true);A CSS class is added to CSS files to prevent debug messages from being removed by CSS optimization plugins such as Autoptimize.
Example:
.brlbs-debug[id="timestamp-2023-02-19-12-00-00"] { color: red; }BORLABS_COOKIE_DEV_MODE_ENABLE_SPECIFIC_COMPATIBILITY_PATCHES
This directive allows specific compatibility patches located in the src/compatibility-patches-development directory to be loaded.
Example:
define('BORLABS_COOKIE_DEV_MODE_ENABLE_SPECIFIC_COMPATIBILITY_PATCHES', [
'BorlabsCookieCompatibilityPatchTemporaryElementor',
]);BORLABS_COOKIE_DEV_MODE_REPLACE_API_URLS
This directive allows API URLs to be overridden, making it possible to customize and redirect API requests as needed.
Example:
define('BORLABS_COOKIE_DEV_MODE_REPLACE_API_URLS', [
'https://service.borlabs.io' => 'http://accounts.borlabs-cookie.local',
]);BORLABS_COOKIE_DEV_MODE_SHOW_DRAFT_PACKAGES
This directive enables the display of packages in the Library that are marked as drafts.
Example:
define('BORLABS_COOKIE_DEV_MODE_SHOW_DRAFT_PACKAGES', true);BORLABS_COOKIE_DEV_MODE_SHOW_EXPERIMENTAL_PACKAGES
This directive enables the display of packages in the Library that are marked as experimental.
Example:
define('BORLABS_COOKIE_DEV_MODE_SHOW_EXPERIMENTAL_PACKAGES', true);BORLABS_COOKIE_ENABLE_SAFE_MODE
This directive disables the loading of all compatibility patches.
Example:
define('BORLABS_COOKIE_ENABLE_SAFE_MODE', true);