Skip to content
List all cookies used on your site (WordPress plugin)
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
images
.gitignore
README.md
cookies.php
readme.txt

README.md

Show Me The Cookies

WordPress Plugin to that lists all cookies used on your site.

View Cookies in the Admin Area

Show cookies to your visitors (optional)

Usage

Add the shortcode [cookies] in any post or page to display a list of all current site cookies for your visitors.

Once activated, there's a small options page under Appearance - Cookies with a preview, which is only visible to site admins.

You also have the option to exclude WordPress cookies, which filters anything containting the string "wordpress" or "wp" in the cookie title. Use the shortcode [cookies-nowp] to display the filtered list.

If you like, you can repalce the default separator (a colon) between the cookie and its value with your own string inside the opening and closing tags. For example [cookies] ==> [/cookies].

Attributions

  • This plugin is based on code by David Artiss.
  • He subsequently made it available in this Gist.
  • John Brown discovered it and asked me to filter out WordPress cookies for his project, as a function for his child theme.
  • I loved the idea so much that I decided to wrap it up as this standalone plugin for everybody.

Further Reading

You can’t perform that action at this time.