https://github.com/rareloop/wp-cookie-banner
https://github.com/rareloop/wp-cookie-banner
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rareloop/wp-cookie-banner
- Owner: Rareloop
- License: mit
- Created: 2015-11-28T13:40:45.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-11-28T14:08:38.000Z (over 10 years ago)
- Last Synced: 2024-12-29T07:43:13.990Z (about 1 year ago)
- Language: PHP
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Cookie Banner
Adds one of those obnoxious cookie warning banners to your site. Instead of using JavaScript to add the banner, the markup is on the DOM at page load.
## Setup
Add the following to your templates where you want the banner to appear:
````
[cookiebanner]We know you don't care but we use cookies. More information[/cookiebanner]
````
Optional attributes:
- `class` - defaults to `cookiebanner`
- `maxAge` - defaults to 1 year
## Example output
````html
````
## Cookie Usage
Ironically, the plugin needs to create a cookie so that the server knows not to show the banner after its been shown once. In case you need to add this to your privacy policy, the cookie created is called `_seen_cookie_notice`.