PHPackages                             bootscore/bs-cookie-settings - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. bootscore/bs-cookie-settings

ActiveWordpress-plugin

bootscore/bs-cookie-settings
============================

Adds a cookie consent banner to Bootscore

v5.6.5(4mo ago)9583MITPHP

Since Jun 9Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/bootscore/bs-cookie-settings)[ Packagist](https://packagist.org/packages/bootscore/bs-cookie-settings)[ Docs](https://bootscore.me/documentation/plugin/bs-cookie-settings/)[ GitHub Sponsors](https://github.com/bootscore)[ RSS](/packages/bootscore-bs-cookie-settings/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)DependenciesVersions (11)Used By (0)

bs Cookie Settings
==================

[](#bs-cookie-settings)

[![Packagist Prerelease](https://camo.githubusercontent.com/2878cf7bc6bc5a9ba639bcc06b13c2da9f1f8e904ed19b47b22b9c92951e76c3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f767072652f626f6f7473636f72652f62732d636f6f6b69652d73657474696e67733f6c6f676f3d7061636b6167697374266c6f676f436f6c6f723d666666)](https://packagist.org/packages/bootscore/bs-cookie-settings)[![Github All Releases](https://camo.githubusercontent.com/4a786461b3ae01a511c340e1052b0363cd525f04451a91199d3cff509ee6c856/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f626f6f7473636f72652f62732d636f6f6b69652d73657474696e67732f746f74616c2e737667)](https://github.com/bootscore/bs-cookie-settings/releases)

### Read this in

[](#read-this-in)

- [Español](https://github.com/bootscore/bs-cookie-settings/blob/main/translations/espanol.md)

WordPress plugin to add a GDPR-ready cookie consent to Bootscore theme. Based on the [cookieconsent](https://orestbida.com/demo-projects/cookieconsent/) script by [Orest Bida](https://github.com/orestbida/cookieconsent).

[![bs Cookie Settings](https://camo.githubusercontent.com/7846eefabb68f2d16a04f27a991e0bbc6cb417e6676905389cc83180719265cc/68747470733a2f2f6c68332e676f6f676c6575736572636f6e74656e742e636f6d2f70772f414d2d4a4b4c567a677244674364363875474d6178425059414d5942347767366367376f727a754e553573723431584f6b47467578756541396545676b485243703148666f785467686c3567695652646e657761382d4c7837476d44794e656173747876424b70766a524e513073615035767370535247435250374e302d704c6b794a7174636c74425233325a736257665a6a4342764f7a76526a4948413d77313230302d683935342d6e6f)](https://camo.githubusercontent.com/7846eefabb68f2d16a04f27a991e0bbc6cb417e6676905389cc83180719265cc/68747470733a2f2f6c68332e676f6f676c6575736572636f6e74656e742e636f6d2f70772f414d2d4a4b4c567a677244674364363875474d6178425059414d5942347767366367376f727a754e553573723431584f6b47467578756541396545676b485243703148666f785467686c3567695652646e657761382d4c7837476d44794e656173747876424b70766a524e513073615035767370535247435250374e302d704c6b794a7174636c74425233325a736257665a6a4342764f7a76526a4948413d77313230302d683935342d6e6f)

Installation
------------

[](#installation)

1. Download latest release [bs-cookie-settings.zip](https://github.com/bootscore/bs-cookie-settings/releases/latest/download/bs-cookie-settings.zip).
2. In your admin panel, go to Plugins &gt; and click the Add New button.
3. Click Upload Plugin and Choose File, then select the Plugin's .zip file. Click Install Now.
4. Click Activate to use your new Plugin right away.

Usage
-----

[](#usage)

### Init

[](#init)

Initialize plugin with inline script in a **Custom HTML** widget in **Footer Info** widget position and replace your data.

```

  // Init
  window.addEventListener('load', function () {

    // obtain plugin
    var cc = initCookieConsent();

    // run plugin with your configuration
    cc.run({
      current_lang: 'en',
      autoclear_cookies: true,
      page_scripts: true,

      languages: {
        'en': {
          consent_modal: {
            title: 'We use cookies!',
            description: 'We use cookies on our website to enhance your browsing experience by remembering your preferences and analyzing site traffic. By clicking "Accept all", you consent to the use of all cookies. However, you can manage your cookie preferences to provide a controlled consent.',
            primary_btn: {
              text: 'Accept all',
              role: 'accept_all'
            },
            secondary_btn: {
              text: 'Reject all',
              role: 'accept_necessary'
            },
            settings_btn: {
              text: 'Manage preferences'
            },
            consent_footer: {
              description: 'Privacy Policy • Terms & Conditions • Imprint'
            }
          },

          settings_modal: {
            title: 'Cookie preferences',
            save_settings_btn: 'Save preferences',
            accept_all_btn: 'Accept all',
            reject_all_btn: 'Reject all',
            close_btn_label: 'Close',
            cookie_table_headers: [
              { col1: 'Name' },
              { col2: 'Domain' },
              { col3: 'Expiration' },
              { col4: 'Description' }
            ],
            blocks: [
              {
                title: 'Cookie usage',
                description: 'We use cookies to ensure the basic functionalities of the website and to enhance your online experience. You can choose for each category to opt-in/out whenever you want. For more details relative to cookies and other sensitive data, please read the full Privacy Policy.'
              }, {
                title: 'Necessary',
                description: 'These cookies are essential for the proper functioning of our website. Without these cookies, the website would not work properly',
                toggle: {
                  value: 'necessary',
                  enabled: true,
                  readonly: true          // cookie categories with readonly=true are all treated as "necessary cookies"
                }
              }, {
                title: 'Analytics',
                description: 'These cookies allow the website to remember the choices you have made in the past',
                toggle: {
                  value: 'analytics',     // your cookie category
                  enabled: false,
                  readonly: false
                },
                cookie_table: [           // list of all expected cookies
                  {
                    col1: '^_ga',         // match all cookies starting with "_ga"
                    col2: 'google.com',
                    col3: '2 years',
                    col4: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat.',
                    is_regex: true
                  }, {
                    col1: '_gid',
                    col2: 'google.com',
                    col3: '1 day',
                    col4: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat.',
                  }
                ]
              }, {
                title: 'Advertising',
                description: 'These cookies collect information about how you use the website, which pages you visited and which links you clicked on. All of the data is anonymized and cannot be used to identify you',
                toggle: {
                  value: 'advertising',
                  enabled: false,
                  readonly: false
                },
                cookie_table: [             // list of all expected cookies
                  {
                    col1: '_name',
                    col2: 'xyz.com',
                    col3: '2 weeks',
                    col4: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat.',
                    is_regex: true
                  }, {
                    col1: '_name',
                    col2: 'xyz.com',
                    col3: '3 days',
                    col4: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat.',
                  }
                ]
              }, {
                title: 'More information',
                description: 'For any queries in relation to our policy on cookies and your choices, please contact us.',
              },

            ]
          }

        }
      }

    });
  });

```

### Block / manage scripts

[](#block--manage-scripts)

Set `type="text/plain"` and `data-cookiecategory=""` to any script tag you want to manage. Use inline-script in a **Custom HTML** widget in **Footer Info** position **after** the init script.

```

  // Code goes here

  // Code goes here

```

### Open preferences modal

[](#open-preferences-modal)

By clicking one of the "Accept all", "Reject all" or "Save preferences" button, the cookie `bs_cookie_settings` is set with your preferences and hides banner and modal for 182 days. To open preferences modal again, add following link to your privacy policy and to a **Custom HTML** widget in a **Footer** widget position.

#### Link

[](#link)

```
Cookie Preferences
```

#### Button

[](#button)

```
Cookie Preferences
```

License &amp; Credits
---------------------

[](#license--credits)

- cookieconsent script by Orest Bida, MIT License
- Plugin Update Checker by YahnisElsts, MIT License [](https://github.com/YahnisElsts/plugin-update-checker/blob/master/license.txt)
- bs Cookie Settings, MIT License

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance77

Regular maintenance activity

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 99.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~104 days

Recently: every ~124 days

Total

10

Last Release

128d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5d2e5efbf7216a1a7b706656d8338a788e47e49293d0db9bdcff99d4f45a4cc6?d=identicon)[crftwrk](/maintainers/crftwrk)

---

Top Contributors

[![crftwrk](https://avatars.githubusercontent.com/u/51531217?v=4)](https://github.com/crftwrk "crftwrk (230 commits)")[![osdeibi](https://avatars.githubusercontent.com/u/9400718?v=4)](https://github.com/osdeibi "osdeibi (1 commits)")

---

Tags

bootscorebootstrapbootstrap5javascriptwordpresswordpress-pluginpluginwordpressbootstrapcontact-form-7bootscore

### Embed Badge

![Health badge](/badges/bootscore-bs-cookie-settings/health.svg)

```
[![Health](https://phpackages.com/badges/bootscore-bs-cookie-settings/health.svg)](https://phpackages.com/packages/bootscore-bs-cookie-settings)
```

###  Alternatives

[bootscore/bootscore

A powerful, free Bootstrap 5 starter theme for WordPress.

3692.6k](/packages/bootscore-bootscore)[sybrew/the-seo-framework

An automated, advanced, accessible, unbranded and extremely fast SEO solution for any WordPress website.

47078.8k](/packages/sybrew-the-seo-framework)[afragen/git-updater

A plugin to automatically update GitHub, Bitbucket, GitLab, or Gitea hosted plugins, themes, and language packs.

3.3k1.6k](/packages/afragen-git-updater)[webdevstudios/cmb2-attached-posts

Custom field for CMB2 for creating post relationships.

13565.5k](/packages/webdevstudios-cmb2-attached-posts)[alleyinteractive/pest-plugin-wordpress

WordPress Pest Integration

263.7k1](/packages/alleyinteractive-pest-plugin-wordpress)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
