Filter for customisation

nsc_bar_filter_banner_is_active

You can disable the banner in the frontend programmatically. Expects true or false.
You have to enable the banner in the admin for this filter to work probably.

Please keep in mind
  • This filter has no influence on the “Block Services” behaviour of the premium add-on. If you disable the banner by this filter the “block services” behave as if there was no user interaction with the banner.
  • If you disable the banner by this filter, no dataLayer push will

nsc_bar_cookie_bar_message

You can override or get the setting: “Text > Text for Banner”

nsc_bar_filter_json_config_string_before_js

Access the whole banner config as a JSON string. Can be decoded with json_decode.

nsc_bar_filter_json_config_string_with_js

Access the whole banner config as a JS Object string. Can NOT be decoded with json_decode.

nsc_bar_filter_banner_config_array_init

Dangerous! Access the banner config array when it is initialized. That means that your filter overrides can be saved to the database and are visible not only in the banner but also in the admin settings area. Handle with caution!