Cookie Tasting
Detect user login only with cookie. The best helper for cached WordPress sites.
Betrachten Sie eine Alternative
Cookie Tasting shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites, is rated 5/5 and was last updated 6 years ago, and scores 30/100 on our health check.
- Kleine Benutzerbasis (10+ aktive Installationen)
- Bisher sehr wenige Bewertungen
- Kein Update in 6 Jahren
- Nur getestet bis WordPress 5.5 (letzt ist 7.1)
Wie stapelt es sich?
Side-by-side bei Installationen, Updates, Bewertungen und SupportTägliche Downloads
Download-Spitzen folgen normalerweise einer neuen Version - jede Website, die automatisch aktualisiert wird, gilt als Download.
Ranglisten
Where Cookie Tasting stands todayWordPress.org Ranglisten suchen
Live-Position in der Plugin-Suche, Top 100| Stichwort | Position |
|---|---|
| Zwischenspeicher | >100 |
| Keks | >100 |
| Mitgliedschaft | >100 |
Versionsübernahme
Anteil aktiver Sites pro Release.
Bewertungsaufschlüsselung
★★★★★★★★★★ 5 from 1 reviews
About Cookie Tasting
From the official readme · v1.0.11Beschreibung
This plugin sets user cookie when user is logged in.
You can use cookie as data store,
so you can use it as UI resource.
Visibility
This plugin adds class to html element.
ct-logged-inThe current user is logged in.ct-not-logged-inThe current user is anonymous.
You can control elements visibility with CSS.
.some-element{
display: none;
}
.ct-logged-in .some-element{
display: block;
}
From JavaScript
You can use Global Object CookieTasting for utility.
CookieTasting.userName()Returns user name. If not logged in, returns ‘Guest’.CookieTasting.lastUpdated()Returns timestamp of last log in check. If this equals 0, it means that user is anonymous.
Besides that, this plugin checks periodically log-in status.
You can handle it with jQuery.
jQuery( document ).on( 'cookie.tasting', function( event, response ) {
if ( response.login ) {
// User is logged in.
// If you use React...
setAttributes({ name: CookieTasting.userName() })
} else {
// User is not logged in.
}
} );
If you use react or something, updated the status with setState().
Check Before Action
If you manage cached WordPress and customizing your own theme,
It’s a good idea to implement dynamic UI components with JavaScript.
You can check user’s credential just before important actions.
// Click action for button.
$('.read-more').click( function( e ) {
e.preventDefault();
// Check cookie before do something.
CookieTasting.testBefore().then( function( response ) {
// Now user has fresh information.
// Load premium contents.
loadPremiumContents();
}).catch( function( response ) {
// This user is not logged in.
// Redirect them to login page.
window.locaion.href = '/wp-login.php';
} );
} );
Plese remember adding dependency for cookie-tasting-heartbeat to your script.
Handle UUID
By default, this plugin set UUID for each user. This will be…
- Unique for each logged in user and will be saved as user_meta.
- Also kept for anonymous user.
So you can use it for Google Analytic’s User ID View.
const uuid = CookieTasting.get( 'uuid' ); // For Google Analytics. ga( 'set', "userId", uid );
Installation
- Download zip file and unpack it.
- Upload the directory to
wp-content/plugins. - Go to WordPress admin screen and activate this plugin.
Recommendation: Search on WordPress admin screen and install it.
Änderungsprotokoll
1.0.11
- Display
console.logonly ifSCRIPT_DEBUGis true.
1.0.10
- Bugfix: Add polyfil for
Object.assignin favor of lte IE11.
(Props @Kamata Ryo).
1.0.9
- Bugfix nonce refreshing for cached page.
1.0.8
- Add filter for Cookie check API. Now you can change error message.
1.0.7
- Fix UUID logic.
- Add automatic refresh for rewrite rules.
1.0.6
- Fix SSL bug.
Für Entwickler
Ist das dein Plugin? Zeigen Sie die Zahlen.
Fügen Sie Ihrer Website, Docs oder GitHub Readme ein Live-Badge hinzu. Es wird von selbst aktualisiert - kein Konto erforderlich.
Best Cookie Tasting alternatives
Alle Cache-Plugins →Fragen und Antworten
Cookie Tasting: quick answers
Gerade Antworten, gezogen von Live WordPress.org Daten.
Quelle: WordPress.org
Is Cookie Tasting free?
Yes. Cookie Tasting is free to download and use from the official WordPress.org plugin directory.
Is Cookie Tasting safe to use in 2026?
Cookie Tasting shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites, is rated 5/5 and was last updated 6 years ago, and scores 30/100 on our health check.
How many websites use Cookie Tasting?
Cookie Tasting is active on 10+ WordPress websites and has been downloaded 2,876 times since it launched in March 2019. It was downloaded 242 times in the last 30 days.
Does Cookie Tasting work with WordPress 7.1?
Cookie Tasting is officially tested up to WordPress 5.5.25, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
What PHP version does Cookie Tasting need?
Cookie Tasting requires PHP 7.0 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Cookie Tasting last updated?
The latest version, 1.0.11, was released on October 27, 2020 (6 years ago).
Who makes Cookie Tasting?
Cookie Tasting is developed and maintained by Tarosky Inc..
What are the best alternatives to Cookie Tasting?
The most popular alternatives to Cookie Tasting are WP Super Cache (1M+ installs), WP Fastest Cache (1M+ installs) and WP-Optimize (1M+ installs).
Angetrieben von PageForge
Eine Vorlage und eine Tabelle. Eine echte Seite für jede Suche.
PageForge Verwandelt jede Zeile eines CSV in eine WordPress-Seite mit eigenem Titel, URL, SEO Felder und Schema entworfen. Kostenlos auf WordPress.org.
- CSV und XLSX, plus Google Sheets auf Beruf und Unternehmen
- seinen eigenen Titel, URL, SEO Felder und Schema für jede Seite
- Arbeitet mit dem Blockeditor, Elementor, Divi und Avada
- Kostenlos auf WordPress.org, keine Kreditkarte
