Detect user login only with cookie. The best helper for cached WordPress sites.
As of April 2026, Cookie Tasting is a WordPress cache plugin with 10 active installations and a 5/5 rating from 1 reviews. It has been downloaded 2.2K+ times in total. Requires WordPress 5.0+ and PHP 7.0+. Available on WordPress.org since 2019. Last updated 5 years ago — may have compatibility concerns. Top alternative: WP Fastest Cache – WordPress Cache….
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.
This plugin adds class to html element.
ct-logged-in The current user is logged in.ct-not-logged-in The current user is anonymous.You can control elements visibility with CSS.
.some-element{
display: none;
}
.ct-logged-in .some-element{
display: block;
}
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.…
| WordPress | 5.0+ requiredTested up to 5.5.18 |
| PHP | 7.0+ required |
console.log only if SCRIPT_DEBUG is true.Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.