Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

Want to know who is login Admin/User

is_admin() only checkes if the dashboard page is displayed or not, if you want to tell the role of a user, try current_user_can( $capability )

Related Posts:

  1. How to Change the Default Home Page for the WordPress Dashboard?
  2. Can’t access dashboard as administrator, login as any other level works though
  3. Keep Logged in Users out of Admin Panel
  4. Given multiple admin accounts, how can I make it so that only admin with X username can edit posts
  5. Extending the user profile [closed]
  6. How do I remove dashboard access from specific user roles?
  7. Setting admin edit panels & metaboxes positions and visibility for ALL users and admins
  8. Can an admin check passwords of registered users?
  9. How to obtain the user ID of the current profile being edited in WP-Admin?
  10. 3.3: How do you hide the new dashboard welcome panel?
  11. Cannot access admin panel
  12. How can we customize the logo and some text on the welcome screen?
  13. Can I set a default dashboard layout for all users?
  14. Appearance->Editor not visible
  15. Hide update messages from non-admin users?
  16. Daily notices of failed login attempts for non-existent admin user
  17. How to remove “Super Admin” from All Users for those that are not a “Super Admin”?
  18. Add extra field when admin create user
  19. Add a custom column in users list page
  20. Customize Admin Users Screen based on Role
  21. Make certain pages uneditable by editors?
  22. wp-admin: Sort users by surname
  23. Add User meta fields, which only admin can edit
  24. How to display only logged in user’s post comments in comments area
  25. Add Admin User via SQL
  26. Can you have the users list pre sorted by specific column?
  27. Setting Login with User Name and Password default option for Jetpack Admin Login
  28. How to remove Gravatar from Username column
  29. Which hook for processing plugin page form data?
  30. I keep getting logged out in Firefox
  31. How do I enable new account notification emails (to the administrator)?
  32. In administration, how do I display comments of a certain user?
  33. New users must comment when requesting username
  34. user-new.php less detailed after WP3.1; how to revert?
  35. Error thrown. Cannot create references to/from string offsets
  36. $user_id vs. is_user_logged_in()
  37. Get current logged in user under 3.1, re: remove “Howdy”
  38. How do I set the homepage to the WordPress Admin Dashboard login?
  39. How to determine if an admin is logged in outside the loop
  40. How to solve 500 Error on WordPress Admin Dashboard due to time-out on getdirsize
  41. Manage users custom column add class “num”
  42. How to get view count of every page on site and add that (increasing) number to Dashboard Widget
  43. Unable to login, old site with previous developer gone
  44. Hide one admin from another admin
  45. Using shared SSL for login/admin
  46. wp-login behind nginx reverse-proxy inaccessible — bad redirect?
  47. Dashboard menu missing
  48. WordPress Admin Login Redirect Problem
  49. Get post attached image to display in admin dashboard
  50. Unable to Access WP Admin or Login buttons after Migration
  51. Continuous Login Sessions For Super Admins Across Multi-Site Network of Sites
  52. using rewrites to secure login page
  53. How can I make the user names of commentors clickable links to the user’s profile from the admin comment screen?
  54. Modifying the built-in behavior of ajax tag type-ahead functionality of WordPress
  55. Client system for media review?
  56. WordPress administration Over SSL – To Force SSL Logins and SSL Admin Access
  57. Unable to get to the admin panel
  58. I can’t access the login panel on my offline website
  59. Shared account / dual blogging in WordPress
  60. How to activate the dashboard
  61. Admin login not working
  62. I’m a super admin and I want to give an admin the ability to add new users…?
  63. Can’t login to my admin area
  64. Backend Checkboxes working – but not visual?
  65. Does deleting the table users prevent all logins?
  66. Locked out of WordPress website from wrong amount of login attempts
  67. current_user_can(‘administrator’) not working in custom login
  68. Redirect admin 403 “Cheatin uh?” admin pages
  69. Send admin to a different login than users?
  70. How should I setup the “Users” area to hand over to a client?
  71. How to show a custom notification to a specific user?
  72. Top toolbar is not showing in wordpress admin panel
  73. Control Users listed in Users List on dashboard
  74. Remove iPhone detection on login page
  75. How should I change the username of or delete the admin user?
  76. Dashboard RSS Widget Overhaul
  77. Prevent Registration Where Role is None?
  78. Any known plugins for master admin login to edit all on front end?
  79. How To Create WordPress Dashboard Item
  80. Adding a WordPress Admin Dashboard to my local wordpress site
  81. Login to admin by frontend form?
  82. Error “Sorry, you are not allowed to access this page”
  83. I can’t access login page
  84. Hide top admin panel for non admin and non editors
  85. When admin approves a registered user, I don’t want to send a notification email to users
  86. Sortable admin columns by 0.00 number
  87. Is it possible to create a custom admin page for users?
  88. WordPress4.1.15 Dashboard links not working
  89. Admins loggin in to our wordpress site default to the admin page
  90. Custom redirection when managing users in admin
  91. Different role for free and pro users in wordpress without using bbpress
  92. Unable to render Admin Notices
  93. My code for creating an admin option doesn’t work
  94. WordPress login not working
  95. Login to Admin Dashboard Problem
  96. WordPress login process is hanging
  97. WordPress “Hide WP” Gives Me Error After Admin Login [closed]
  98. Scripts are not called until I login from wordpress backend
  99. Disable wp-admin log on lightbox overlay
  100. WP Logs me out after updating anything on dashboard
Categories admin Tags admin, dashboard, login, users
Why do people use “admin” username by default? [closed]
Removing admin javascript

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress