You could use Javascript
<script type="text/javascript">
function getCookie(c_name)
{
var i,x,y,ARRcookies=document.cookie.split(";");
for (i=0;i<ARRcookies.length;i++)
{
x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));
y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);
x=x.replace(/^\s+|\s+$/g,"");
if (x==c_name)
{
return unescape(y);
}
}
}
var logged_in=getCookie("wordpress_logged_in_[HASH]");
if (logged_in!=null && logged_in!="")
{
alert("You are logged in!");
}
else
{
alert("You are logged out!");
}
</script>
NOTE: WordPress logged in cookie info can be found here. You’ll need to figure out what your hash is and possibly use regex for the hash. (this is untested but should work)
Related Posts:
- Admin Page Redirect
- Can an admin check passwords of registered users?
- How to display only logged in user’s post comments in comments area
- define two login page url
- Newly created user role not displaying on users screen
- Login issue with subdomain installs
- restrict admin panel sections to users
- Localhost install: Administrator lost administrator access; cannot access Dashboard
- You do not have permission to access this document on form submit
- Administrator user cannot access dashboard after localwp import
- WordPress change role from administrator to author by itself (automatically)
- Organizing Code in your WordPress Theme's functions.php File?
- How to check if a user is in a specific role?
- How to restrict dashboard access to Admins only?
- Disable dragging of meta boxes?
- How to remove screen options and help links in the admin area?
- Sort admin menu items
- Check if user is admin by user ID
- How to Layer 7 Load Balance WordPress Backend and Frontend?
- Custom column for changing post status via ajax
- How to obtain the user ID of the current profile being edited in WP-Admin?
- Make fonts.com font work in TinyMCE (iframe referrer issue)
- How to display the user that published a pending post?
- Custom user role that can only edit specific (non-custom-type) page and all child pages [duplicate]
- Only allow administrators and editors to access wp-admin
- How to remove items from +New admin menu?
- Add a button to users.php
- create users to site with specific language
- Make sub menu items a main link in the admin menu using fuctions.php
- Add column to pages table
- Admin account only shows Profile and Dashboard with no activity
- Can initial focus be set to search field in WordPress Media Library?
- How to remove “Super Admin” from All Users for those that are not a “Super Admin”?
- Moving wordpress from localhost to server throws admin panel access error?
- wp-admin – save options without refreshing?
- Display sortable User meta column in admin panel user’s page
- How to display multiple custom columns in the wp-admin users.php?
- Hooking into register_admin_color_schemes
- How do you modify CSS files via admin panel?
- How to prevent parent admin page from appearring as a child admin page
- Removing user fields [duplicate]
- Cookie value cannot be read until I’ve logged into the WP admin
- Add a wordpress blog to my website having users
- Change WP-Login or WP-Admin
- How to inhibit dashboard and profile management access to normal users?
- wp-admin edit user url wont show up correct url [closed]
- SSL Partially breaking admin panel and elementor
- Users Unable to Access Dashboard/Posts/Pages
- Only allow administrators and editors to access wp-admin
- Stop loading “collaborators” users on add new post or page?
- What is the practical difference between is_admin() and is_blog_admin()?
- How do I set the homepage to the WordPress Admin Dashboard login?
- List User order by ID in Descending order (Backend)
- Distinguish profile user and admin user IDs / get ID of user being edited
- Create a admin page in wordpress without admin menus (“wordpress sidebars”)
- How to hide wordpress default description box?
- Can’t access WordPress as an admin – but I can log in as a user!
- Uncheck the box “Send User Notification” by default on new-user.php
- Detecting all admins that are logged in
- Redirect non-admin users away from wp-admin/index.php (main dashboard page) to wp-admin/profile.php
- Subscribers become Authors after Upgrade? / Mass Update of Users?
- Stopping user deletion from running on error
- I want to disable login of admin (/wp-admin) with email and make it accessible only with username
- Allow administrators to pick post author on custom post type edit screen
- Filter dropdown in users.php “delete user” bulk edit screen
- Add count for new registered user in Users tab
- How to make the front-end RTL without changing the admin panel language?
- admin_post action not usable if admin access denied to user
- Restrict Author role to only 3 wp-admin pages
- Users disappeared from wp-admin
- Add column to pages table
- Displaying different in-page content to cliente/admin
- Logout USER form backoffice after 30 minutes of inactivity [closed]
- What are the requirements to make the admin toolbar show up on the front end
- Remove bulk option row
- WP admin user search doesn’t return all users
- Hide username discovery
- Cookie Domain is preventing Admin login
- I can´t access my admin panel. I tried all possible solutions
- How to get Role Subscribe Users on Admin Menu only in Pages in WordPress
- Lost administrator privileges and can’t find a fix
- How to replace “Password Protected” text with icon in Admin
- I accidentally deleted an admin user and all their content is now gone from the site. [closed]
- How to remove dashboard access (wp-admin) for author but not disable the capabilities?
- Restrict submitters from wp-admin [duplicate]
- Deploying WordPress for clients – what do they have access to?
- Hooks: admin_footer and admin_print_footer_scripts not working?
- Can’t access wp-admin, redirects to http://%24domain/wp-admin/
- What is the correct way to get only display plugin for Administrator Only
- Customizing Users in Admin Area
- Admin top level menu, pointing to an external url
- Browse Happy in 3.2
- Is there a plugin for WordPress for creating ‘Accounts’ where all users who belong to that Account can only see Account data? [closed]
- How to break line / add to ADMIN menu
- Nickname field isn’t appearing in Admin
- How to Find The Email of a WP Admin Account
- How to allow WordPress updates to only one specific administrator?
- Allow admins to login as other users
- External HTTP API calls slowing down WordPress admin [closed]
- Outputting something based on the presence of post variable in admin screens