is_admin
is true when you’re in the dashboard/admin area, aka example.com/wp-admin
. It asks the question “are we in the admin area?”, and is true of anybody logged in and inside the admin area. This could be a user with the role subscriber who sees only the edit profile page. This function is similar to is_home()
or is_single()
, and has nothing to do with the current user, only their location on the site.
current_user_can( 'manage_options' )
is true, if the current logged in user has the capability with the name manage_options
. Normally only administrators have these options. Note that a plugin may change this
Related Posts:
- Organizing Code in your WordPress Theme's functions.php File?
- Admin Page Redirect
- Disable dragging of meta boxes?
- How to remove screen options and help links in the admin area?
- Sort admin menu items
- Custom column for changing post status via ajax
- Make fonts.com font work in TinyMCE (iframe referrer issue)
- How to remove items from +New admin menu?
- 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?
- wp-admin – save options without refreshing?
- How do you modify CSS files via admin panel?
- How to prevent parent admin page from appearring as a child admin page
- Change WP-Login or WP-Admin
- SSL Partially breaking admin panel and elementor
- What is the practical difference between is_admin() and is_blog_admin()?
- How do I set the homepage to the WordPress Admin Dashboard login?
- Create a admin page in wordpress without admin menus (“wordpress sidebars”)
- How to hide wordpress default description box?
- 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
- How to make the front-end RTL without changing the admin panel language?
- Add column to pages table
- What are the requirements to make the admin toolbar show up on the front end
- Remove bulk option row
- How to replace “Password Protected” text with icon in Admin
- Hooks: admin_footer and admin_print_footer_scripts not working?
- Can’t access wp-admin, redirects to http://%24domain/wp-admin/
- Admin top level menu, pointing to an external url
- Browse Happy in 3.2
- How to break line / add to ADMIN menu
- External HTTP API calls slowing down WordPress admin [closed]
- Outputting something based on the presence of post variable in admin screens
- Creating custom admin panel pages without making a plugin?
- Dashboard : remove Safari navigator message
- Available resources for learning WordPress 4.7.2 from the ground up?
- Uncaught SyntaxError: Unexpected Token Illegal
- Newly created user role not displaying on users screen
- WordPress Admin extremely slow when other admin logged in
- WordPress Admin Panel Left Sidebar No showing on Post create page
- Accessing wordpress tool in local MAMP Site
- How to remove Google fonts from wp-admin (Roboto) added by core
- Trying to login to my site redirects me to the first page
- Admin Login Checks
- Failed to load resource: the server responded with a status of 431 ()
- When installing wordpress through WP CLI mysite.com/admin not working
- Trying to list user and post information from (wp_includes/post.php ) causes Fatal error
- Localhost install: Administrator lost administrator access; cannot access Dashboard
- Admin Login page not working at all
- Is it possible to tell if a user is logged into WordPress from looking at the cookies which are set?
- 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?
- How to make the Panel // WP-Admin lighter via Mobile
- Is there ANY way to remove comments function and section totally?
- How to display a static HTML page while setting up a WordPress site?
- How can I uninstall a language?
- Best way to present options for home page in admin?
- How to make ajax call in wordpress in right way?
- Delete Post From front Page ( With Wp-admin restriction )
- How to build custom WP admin with custom URLs
- How to get the password and username of the add new user form (admin back end) in wordpress
- WordPress Error establishing a database connection For Admin login only
- Image editing: “Edit Original” and “Replace” buttons missing on old posts
- Replace wordpress login logo with custom text
- Why are my frontend theme styles bleeding into the backend?
- Uncheck the box “Send User Notification” by default on new-user.php
- WordPress Options Page not working
- wp-admin post.php JavaScript Links Not Working
- Admin account locked out/redirect loop. Other accounts work?
- Admin access for custom user capabilities
- No access local wordpress website after PC formating
- is_admin() not working when updating a post in the admin panel
- Why is server preventing admin styles? (Was: Where are WordPress sessions saved?)
- Migrated wordpress site give “Undefined variable: php” warnings
- I am unable to login into my wp-admin
- Is it possible to take over a WordPress site if the old administrator is MIA?
- Site Crashes When Updating to WordPress (Version 3.6)
- Change of IP Address
- How can I control which plugins run in the dashboard?
- Too Many Redirects – WP-Admin Only
- Admin: Custom Query Returning Permissions Error
- WordPress admin section appears broken
- Is WordPress secure enough for a multi-user article directory?
- Wp-admin widgets have no title texts
- How to create directory under my active theme directory
- On Users (user.php) in wp-admin disable/hide “Bulk Actions” and “Change Role To”
- Login issue with subdomain installs
- Redirect from wp-admin back to page
- How can I can I make changes to a WP project I pulled from GItHub?
- WordPress critical error on wp-admin page with 100% permissions
- Access to “My Site” is missing from the admin bar
- site identity will not update [closed]
- str_replace in wp-admin
- Admin area is not loading properly
- Is it possible to change the images source that are shown in the admin side?
- Using query string on edit CPT page
- Pages redirect me to the homepage
- All of my WordPress sites have Bold Open Sans