Cookie Tasting
Detect user login only with cookie. The best helper for cached WordPress sites.
Envisager une 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.
- Petite base d'utilisateurs (plus de 10 installations actives)
- Très peu de critiques jusqu'à présent
- Pas de mise à jour dans 6 ans
- Uniquement testé jusqu'à WordPress 5,5 (le dernier est de 7,1)
Comment s'accumule-t-il ?
Côte à côte sur les installations, les mises à jour, les évaluations et le supportTéléchargements quotidiens
Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.
Classements
Where Cookie Tasting stands todayWordPress.org Classements de recherche
Position en direct dans la recherche de plugins, Top 100| Mot-clé | Position |
|---|---|
| cachette | >100 |
| gâteau | >100 |
| membership | >100 |
Adoption de version
Part de sites actifs par version.
Répartition des notes
★★★★★ ★★★★★ 5 sur 1 avis
About Cookie Tasting
From the official readme · v1.0.11Description
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.
Visibilité
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.
Journal de modifications
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.
Pour les développeurs
Est-ce votre plugin ? Montrez les chiffres.
Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.
Best Cookie Tasting alternatives
Tous les plugins de cache →FAQ
Cookie Tasting: quick answers
Réponses directes, extraites des données en direct WordPress.org.
Source : 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).
Propulsé par PageForge
Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.
PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.
- CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
- Son propre titre, URL, SEO champs et schéma pour chaque page
- Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
- Gratuit sur WordPress.org, pas de carte de crédit
