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
- 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
- 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?
- create users to site with specific language
- Admin account only shows Profile and Dashboard with no activity
- 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?
- Display sortable User meta column in admin panel user’s page
- How to display multiple custom columns in the wp-admin users.php?
- Cookie value cannot be read until I’ve logged into the WP admin
- 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]
- Users Unable to Access Dashboard/Posts/Pages
- Stop loading “collaborators” users on add new post or page?
- List User order by ID in Descending order (Backend)
- Distinguish profile user and admin user IDs / get ID of user being edited
- How to hide wordpress default description box?
- Can’t access WordPress as an admin – but I can log in as a user!
- 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
- Allow administrators to pick post author on custom post type edit screen
- Filter dropdown in users.php “delete user” bulk edit screen
- admin_post action not usable if admin access denied to user
- 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
- 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
- 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
- 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
- Dashboard : remove Safari navigator message
- Is there a filter to edit html of user-edit.php
- Available resources for learning WordPress 4.7.2 from the ground up?
- Where is function to prevents non logged users access wp-admin?
- Create new user from phpMyAdmin
- How do I make it so that the all users page is not a white screen?
- Uncaught SyntaxError: Unexpected Token Illegal
- WordPress Admin extremely slow when other admin logged in
- How to check if a user is in a specific role?
- Not able to access WP Admin, it says “Sorry, you are not allowed to access this page.”
- WordPress Admin Panel Left Sidebar No showing on Post create page
- Accessing wordpress tool in local MAMP Site
- Hook into form handle from admin users table
- How to remove Google fonts from wp-admin (Roboto) added by core
- Trying to login to my site redirects me to the first page
- CSRF attack to create USER
- Admin Login Checks
- When installing wordpress through WP CLI mysite.com/admin not working
- How to keep the plugin submenu open on viewing a custom version of users.php?
- Capability to read/edit page in wp-admin only for administrators
- How to create functions that affect only a specific user
- Admin Login page not working at all
- Anyone Can Register
- WordPress blog fails to open
- One folder to be accessible by one user
- Extend user search in the Wp backend area on the users.php page to allow for searching by email domain and role from the “users search” input box
- Why when I click on a link into the WP admin panel I am redirected to a link that doesn’t contains wp-admin prefix, so I obtain 404 error
- Override WordPress Core File?
- WordPress Users page missing user count next to different types of users
- How to make the Panel // WP-Admin lighter via Mobile
- After Upgrade: $user becomes unknown (id: 0) after successful login?
- Searching for a custom meta from user.php in the admin