Configuration
BORLABS_COOKIE_CACHE_PATH
This directive enables the specification of 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 enables the specification of 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 for the flexibility to use language codes that exceed the standard two-letter ISO 639-1 format. Typically, language codes are limited to two characters, but setting this constant to true
enables the use of extended language codes, 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
This directive enables the specification of an alternative storage path for Borlabs Cookie storage data.
Example:
define('BORLABS_COOKIE_STORAGE_PATH', '/var/www/example.internal/my-storage');
BORLABS_COOKIE_STORAGE_URL
This directive enables the specification of an alternative storage URL for Borlabs Cookie storage data.
Example:
define('BORLABS_COOKIE_STORAGE_URL', 'https://example.internal/my-storage');
Debugging & Development
BORLABS_COOKIE_DEV_MODE_DISABLE_CSS_CACHING
This directive prohibits the caching of Borlabs Cookie's CSS files. Each page reload generates a fresh set of CSS rules.
Example:
define('BORLABS_COOKIE_DEV_MODE_DISABLE_CSS_CACHING', true);
BORLABS_COOKIE_DEV_MODE_DISABLE_SSL_VERIFY
This directive deactivates SSL verification and permits the use of self-signed SSL certificates. Furthermore, it enables the allowance 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
folder.
Example:
define('BORLABS_COOKIE_DEV_MODE_ENABLE_ALL_COMPATIBILITY_PATCHES', true);
BORLABS_COOKIE_DEV_MODE_ENABLE_ASSET_TIMESTAMPS
This directive inserts timestamps into Borlabs Cookie's 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 logs if 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 entry.
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 to the browser's console.
Example:
define('BORLABS_COOKIE_DEV_MODE_ENABLE_JAVASCRIPT_LOGS', true);
BORLABS_COOKIE_DEV_MODE_ENABLE_LOCALIZATION_CHECKER_INTERFACE
This directive enables the System > Localization Checker menu entry.
Example:
define('BORLABS_COOKIE_DEV_MODE_ENABLE_LOCALIZATION_CHECKER_INTERFACE', true);
A CSS class is added for CSS files to prevent the debug message 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_REPLACE_API_URLS
This directive allows you the overwriting of API URLs, enabling customization and redirection of API requests as necessary.
Example:
define('BORLABS_COOKIE_DEV_MODE_REPLACE_API_URLS', [
'https://service.borlabs.io' => 'http://accounts.borlabs-cookie.local',
]);
BORLABS_COOKIE_DEV_MODE_SHOW_EXPERIMENTAL_PACKAGES
This directive allows listing of packages in the library that are marked as experimental.
Example:
define('BORLABS_COOKIE_DEV_MODE_SHOW_EXPERIMENTAL_PACKAGES', true);