{"id":8817,"date":"2021-02-19T06:35:36","date_gmt":"2021-02-19T06:35:36","guid":{"rendered":"https:\/\/www.acmethemes.com\/blog\/?p=8817"},"modified":"2025-05-12T06:56:59","modified_gmt":"2025-05-12T06:56:59","slug":"how-to-disable-wordpress-admin-bar-for-all-users-except-administrators","status":"publish","type":"post","link":"https:\/\/www.acmethemes.com\/blog\/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators\/","title":{"rendered":"How to disable WordPress Admin Bar for All Users Except Administrators?"},"content":{"rendered":"<p>Do, you want to easily disable the admin bar in WordPress?<\/p>\n<p>If your answer is yes, this is the perfect article for you. Here we&#8217;ll present you some of the ways to disable the WordPress admin bar for all users except administrators.<\/p>\n<p>Firstly, let us know what WordPress Admin Bar is. If you&#8217;re new to this field you can check these<a href=\"https:\/\/www.acmethemes.com\/blog\/wordpress-tips-everyone-needs-to-know-beginners-friendly\/\" target=\"_blank\" rel=\"noopener\"> WordPress tips and tricks<\/a> to help you out.<\/p>\n<p>WordPress users must be aware that WordPress displays an admin bar on the top for all the users who are logged-in. This toolbar is easily visible in all the pages you&#8217;re logged in and in the WordPress admin area as well.<\/p>\n<p>Therefore, the admin bar can be distracting when viewing the public pages on the front-end of your website and may also affect user experience and the website&#8217;s design.<\/p>\n<p>Fortunately, you can find multiple ways to easily disable the WordPress admin bar for all users except administrators.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69e10227ad6ae\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69e10227ad6ae\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.acmethemes.com\/blog\/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators\/#Disable_with_the_help_of_code\" >Disable with the help of code<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.acmethemes.com\/blog\/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators\/#Disable_Admin_Bar_for_all_users_including_admins\" >Disable Admin Bar for all users including admins<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.acmethemes.com\/blog\/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators\/#With_the_help_of_a_plugin\" >With the help of a plugin<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.acmethemes.com\/blog\/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators\/#Disable_WordPress_Admin_Bar_For_any_users\" >Disable WordPress Admin Bar For any users:<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.acmethemes.com\/blog\/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"Disable_with_the_help_of_code\"><\/span>Disable with the help of code<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>You can disable the admin bar for all the users except administrators by adding code to your WordPress theme files. It is a very simple and easy step. All you need to do is simply add the code given below to your theme&#8217;s function file or a site-specific plugin.<\/p>\n<div>\n<div id=\"highlighter_920782\" class=\"syntaxhighlighter php\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"gutter\">\n<div class=\"line number1 index0 alt2\">1<\/div>\n<div class=\"line number2 index1 alt1\">2<\/div>\n<div class=\"line number3 index2 alt2\">3<\/div>\n<div class=\"line number4 index3 alt1\">4<\/div>\n<div class=\"line number5 index4 alt2\">5<\/div>\n<div class=\"line number6 index5 alt1\">6<\/div>\n<\/td>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"php plain\">add_action(<\/code><code class=\"php string\">'after_setup_theme'<\/code><code class=\"php plain\">, <\/code><code class=\"php string\">'remove_admin_bar'<\/code><code class=\"php plain\">);<\/code><\/div>\n<div class=\"line number2 index1 alt1\"><code class=\"php keyword\">function<\/code> <code class=\"php plain\">remove_admin_bar() {<\/code><\/div>\n<div class=\"line number3 index2 alt2\"><code class=\"php keyword\">if<\/code> <code class=\"php plain\">(!current_user_can(<\/code><code class=\"php string\">'administrator'<\/code><code class=\"php plain\">) &amp;&amp; !is_admin()) {<\/code><\/div>\n<div class=\"line number4 index3 alt1\"><code class=\"php spaces\">\u00a0\u00a0<\/code><code class=\"php plain\">show_admin_bar(false);<\/code><\/div>\n<div class=\"line number5 index4 alt2\"><code class=\"php plain\">}<\/code><\/div>\n<div class=\"line number6 index5 alt1\"><code class=\"php plain\">}<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>After adding the code, it checks if the current user is not an administrator and if they&#8217;re engaged on the admin dashboard. Once both the condition matches, it will disable the WordPress admin bar.<\/p>\n<\/div>\n<\/div>\n<p>Then, don&#8217;t forget to save changes and check your website and make sure everything is working fine.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Disable_Admin_Bar_for_all_users_including_admins\"><\/span>Disable Admin Bar for all users including admins<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>With the help of the code below, you can even disable the admin bar for all the users including other administrators and even yourself on your site.<\/p>\n<p>For that, all you need to do is simply modify the code and add the following code to the site-specific plugin or theme&#8217;s function.php file.<\/p>\n<div>\n<div id=\"highlighter_413460\" class=\"syntaxhighlighter php\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"gutter\">\n<div class=\"line number1 index0 alt2\">1<\/div>\n<div class=\"line number2 index1 alt1\">2<\/div>\n<\/td>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"php comments\">\/* Disable WordPress Admin Bar for all users *\/<\/code><\/div>\n<div class=\"line number2 index1 alt1\"><code class=\"php plain\">add_filter( <\/code><code class=\"php string\">'show_admin_bar'<\/code><code class=\"php plain\">, <\/code><code class=\"php string\">'__return_false'<\/code> <code class=\"php plain\">);<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>This code mentioned above will help you to disable the admin bar for all the users when viewing the public pages of your website,<\/p>\n<p>The users will still be able to see the toolbar inside the WordPress admin dashboard.<\/p>\n<\/div>\n<\/div>\n<h3><span class=\"ez-toc-section\" id=\"With_the_help_of_a_plugin\"><\/span>With the help of a plugin<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8824\" src=\"https:\/\/www.acmethemes.com\/blog\/wp-content\/uploads\/2021\/02\/Hide-Admin-Bar-Plugin-1.png\" alt=\"Hide-Admin-Bar-Plugin\" width=\"820\" height=\"410\" \/><\/p>\n<p>By using the plugin, you&#8217;ll be able to quickly and easily disable the WordPress admin for all users except admin.<\/p>\n<p>Firstly, you should install the<a href=\"https:\/\/wordpress.org\/plugins\/hide-admin-bar-based-on-user-roles\/\" target=\"_blank\" rel=\"noopener\"> Hide Admin Bar Based on User Roles<\/a> plugin and Activate it.<\/p>\n<p>After the plugin is activated,<\/p>\n<p>Step 1: Go to the Settings<\/p>\n<p>Step 2: Go to Hide Admin Bar Settings page<\/p>\n<p>Step 3: Then you can click the boxes next to user roles where you would like to disable the admin bar.<\/p>\n<p>Lastly, click on the save changes button to store your settings.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Disable_WordPress_Admin_Bar_For_any_users\"><\/span>Disable WordPress Admin Bar For any users:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>WordPress permits each of the users to disable the admin bar by editing their own user profile. The site owner is also allowed to edit other users&#8217; profiles and disable the admin bar. To disable the admin bar of the specific user in WordPress, you&#8217;ll need to edit their user profile.<\/p>\n<p>Steps to be followed:<\/p>\n<p>Step 1: Go to the Users<\/p>\n<p>Step 2: Then All the Users page<\/p>\n<p>Step 3: Click on the &#8220;edit&#8221; link for any specific user you want to disable the admin bar for.<\/p>\n<p>After the following steps, this will bring you to the user profile editor page.<\/p>\n<p>Step 4: Then, uncheck the box next to the \u2018Show toolbar when viewing site\u2019 option.<\/p>\n<p>Step 5: Click on the &#8220;Update User&#8221; button to save your change.<\/p>\n<p>After following the steps mentioned above, it will disable the admin bar for the specific user when visiting their site.<\/p>\n<p>This method will not work if you have a large number of users, then you can physically disable the admin bar for all of them.<\/p>\n<hr \/>\n<h4><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>The ideas mentioned are very useful to disable WordPress Admin Bar for All Users Except Administrators. I hope this article will help you out.<\/p>\n<p>If you liked this article, then consider following us on\u00a0<strong>Twitter<\/strong>\u00a0and<strong>\u00a0<a href=\"https:\/\/www.facebook.com\/acmethemes\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">Facebook<\/a>,<\/strong>\u00a0and\u00a0<strong><a href=\"https:\/\/www.linkedin.com\/in\/acmethemes\/\" target=\"_blank\" rel=\"noreferrer noopener\">LinkedIn<\/a><\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Do, you want to easily disable the admin bar in WordPress? If your answer is yes, this is the perfect article for you. Here we&#8217;ll present you some of the ways to disable the WordPress admin bar for all users except administrators. Firstly, let us know what WordPress Admin Bar is. If you&#8217;re new to [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":8825,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[8,49],"tags":[239],"class_list":["post-8817","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-informations","category-wordpress-tips","tag-wordpress"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to disable WordPress Admin Bar for All Users Except Administrators? &#171; Acme Themes Blog<\/title>\n<meta name=\"description\" content=\"You can even disable the admin bar for all the users including other administrators and even yourself on your site.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.acmethemes.com\/blog\/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to disable WordPress Admin Bar for All Users Except Administrators? &#171; Acme Themes Blog\" \/>\n<meta property=\"og:description\" content=\"You can even disable the admin bar for all the users including other administrators and even yourself on your site.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.acmethemes.com\/blog\/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators\/\" \/>\n<meta property=\"og:site_name\" content=\"Acme Themes Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/acmethemes\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-02-19T06:35:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-12T06:56:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.acmethemes.com\/blog\/wp-content\/uploads\/2021\/02\/How-to-disable-WordPress-Admin-Bar-for-All-Users-Except-Administrators_.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1170\" \/>\n\t<meta property=\"og:image:height\" content=\"500\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Pratima Khanal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@acme_themes\" \/>\n<meta name=\"twitter:site\" content=\"@acme_themes\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pratima Khanal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.acmethemes.com\/blog\/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.acmethemes.com\/blog\/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators\/\"},\"author\":{\"name\":\"Pratima Khanal\",\"@id\":\"https:\/\/www.acmethemes.com\/blog\/#\/schema\/person\/e67fc2d0d063c62eaf79b5b3e8c57cc6\"},\"headline\":\"How to disable WordPress Admin Bar for All Users Except Administrators?\",\"datePublished\":\"2021-02-19T06:35:36+00:00\",\"dateModified\":\"2025-05-12T06:56:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.acmethemes.com\/blog\/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators\/\"},\"wordCount\":679,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.acmethemes.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.acmethemes.com\/blog\/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.acmethemes.com\/blog\/wp-content\/uploads\/2021\/02\/How-to-disable-WordPress-Admin-Bar-for-All-Users-Except-Administrators_.jpg\",\"keywords\":[\"WordPress\"],\"articleSection\":[\"Informations\",\"WordPress Tips\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.acmethemes.com\/blog\/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.acmethemes.com\/blog\/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators\/\",\"url\":\"https:\/\/www.acmethemes.com\/blog\/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators\/\",\"name\":\"How to disable WordPress Admin Bar for All Users Except Administrators? &#171; Acme Themes Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.acmethemes.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.acmethemes.com\/blog\/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.acmethemes.com\/blog\/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.acmethemes.com\/blog\/wp-content\/uploads\/2021\/02\/How-to-disable-WordPress-Admin-Bar-for-All-Users-Except-Administrators_.jpg\",\"datePublished\":\"2021-02-19T06:35:36+00:00\",\"dateModified\":\"2025-05-12T06:56:59+00:00\",\"description\":\"You can even disable the admin bar for all the users including other administrators and even yourself on your site.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.acmethemes.com\/blog\/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.acmethemes.com\/blog\/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.acmethemes.com\/blog\/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators\/#primaryimage\",\"url\":\"https:\/\/www.acmethemes.com\/blog\/wp-content\/uploads\/2021\/02\/How-to-disable-WordPress-Admin-Bar-for-All-Users-Except-Administrators_.jpg\",\"contentUrl\":\"https:\/\/www.acmethemes.com\/blog\/wp-content\/uploads\/2021\/02\/How-to-disable-WordPress-Admin-Bar-for-All-Users-Except-Administrators_.jpg\",\"width\":1170,\"height\":500,\"caption\":\"How-to-disable-WordPress-Admin-Bar-for-All-Users-Except-Administrators?\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.acmethemes.com\/blog\/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.acmethemes.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to disable WordPress Admin Bar for All Users Except Administrators?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.acmethemes.com\/blog\/#website\",\"url\":\"https:\/\/www.acmethemes.com\/blog\/\",\"name\":\"Acme Themes Blog\",\"description\":\"WordPress Themes and Plugins, WordPress Tips and Tricks, News and Events\",\"publisher\":{\"@id\":\"https:\/\/www.acmethemes.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.acmethemes.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.acmethemes.com\/blog\/#organization\",\"name\":\"Acme Themes\",\"url\":\"https:\/\/www.acmethemes.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.acmethemes.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.acmethemes.com\/blog\/wp-content\/uploads\/2016\/12\/acmelogo.jpg\",\"contentUrl\":\"https:\/\/www.acmethemes.com\/blog\/wp-content\/uploads\/2016\/12\/acmelogo.jpg\",\"width\":3600,\"height\":1800,\"caption\":\"Acme Themes\"},\"image\":{\"@id\":\"https:\/\/www.acmethemes.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/acmethemes\/\",\"https:\/\/x.com\/acme_themes\",\"https:\/\/www.instagram.com\/acmethemes\/\",\"https:\/\/www.linkedin.com\/in\/acmethemes\",\"https:\/\/myspace.com\/acmethemes\",\"https:\/\/www.pinterest.com\/acmethemes\/\",\"https:\/\/www.youtube.com\/c\/AcmeThemes\",\"https:\/\/en.wikipedia.org\/wiki\/User:AcmeThemes\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.acmethemes.com\/blog\/#\/schema\/person\/e67fc2d0d063c62eaf79b5b3e8c57cc6\",\"name\":\"Pratima Khanal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/27aa2bdf17b17c3ffe0921ef6e4b46bd73a4eba0f2f68e2d9ebf5411acf7a5ea?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/27aa2bdf17b17c3ffe0921ef6e4b46bd73a4eba0f2f68e2d9ebf5411acf7a5ea?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/27aa2bdf17b17c3ffe0921ef6e4b46bd73a4eba0f2f68e2d9ebf5411acf7a5ea?s=96&d=mm&r=g\",\"caption\":\"Pratima Khanal\"},\"url\":\"https:\/\/www.acmethemes.com\/blog\/author\/pratima\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to disable WordPress Admin Bar for All Users Except Administrators? &#171; Acme Themes Blog","description":"You can even disable the admin bar for all the users including other administrators and even yourself on your site.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.acmethemes.com\/blog\/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators\/","og_locale":"en_US","og_type":"article","og_title":"How to disable WordPress Admin Bar for All Users Except Administrators? &#171; Acme Themes Blog","og_description":"You can even disable the admin bar for all the users including other administrators and even yourself on your site.","og_url":"https:\/\/www.acmethemes.com\/blog\/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators\/","og_site_name":"Acme Themes Blog","article_publisher":"https:\/\/www.facebook.com\/acmethemes\/","article_published_time":"2021-02-19T06:35:36+00:00","article_modified_time":"2025-05-12T06:56:59+00:00","og_image":[{"width":1170,"height":500,"url":"https:\/\/www.acmethemes.com\/blog\/wp-content\/uploads\/2021\/02\/How-to-disable-WordPress-Admin-Bar-for-All-Users-Except-Administrators_.jpg","type":"image\/jpeg"}],"author":"Pratima Khanal","twitter_card":"summary_large_image","twitter_creator":"@acme_themes","twitter_site":"@acme_themes","twitter_misc":{"Written by":"Pratima Khanal","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.acmethemes.com\/blog\/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators\/#article","isPartOf":{"@id":"https:\/\/www.acmethemes.com\/blog\/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators\/"},"author":{"name":"Pratima Khanal","@id":"https:\/\/www.acmethemes.com\/blog\/#\/schema\/person\/e67fc2d0d063c62eaf79b5b3e8c57cc6"},"headline":"How to disable WordPress Admin Bar for All Users Except Administrators?","datePublished":"2021-02-19T06:35:36+00:00","dateModified":"2025-05-12T06:56:59+00:00","mainEntityOfPage":{"@id":"https:\/\/www.acmethemes.com\/blog\/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators\/"},"wordCount":679,"commentCount":0,"publisher":{"@id":"https:\/\/www.acmethemes.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.acmethemes.com\/blog\/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators\/#primaryimage"},"thumbnailUrl":"https:\/\/www.acmethemes.com\/blog\/wp-content\/uploads\/2021\/02\/How-to-disable-WordPress-Admin-Bar-for-All-Users-Except-Administrators_.jpg","keywords":["WordPress"],"articleSection":["Informations","WordPress Tips"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.acmethemes.com\/blog\/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.acmethemes.com\/blog\/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators\/","url":"https:\/\/www.acmethemes.com\/blog\/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators\/","name":"How to disable WordPress Admin Bar for All Users Except Administrators? &#171; Acme Themes Blog","isPartOf":{"@id":"https:\/\/www.acmethemes.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.acmethemes.com\/blog\/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators\/#primaryimage"},"image":{"@id":"https:\/\/www.acmethemes.com\/blog\/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators\/#primaryimage"},"thumbnailUrl":"https:\/\/www.acmethemes.com\/blog\/wp-content\/uploads\/2021\/02\/How-to-disable-WordPress-Admin-Bar-for-All-Users-Except-Administrators_.jpg","datePublished":"2021-02-19T06:35:36+00:00","dateModified":"2025-05-12T06:56:59+00:00","description":"You can even disable the admin bar for all the users including other administrators and even yourself on your site.","breadcrumb":{"@id":"https:\/\/www.acmethemes.com\/blog\/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.acmethemes.com\/blog\/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.acmethemes.com\/blog\/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators\/#primaryimage","url":"https:\/\/www.acmethemes.com\/blog\/wp-content\/uploads\/2021\/02\/How-to-disable-WordPress-Admin-Bar-for-All-Users-Except-Administrators_.jpg","contentUrl":"https:\/\/www.acmethemes.com\/blog\/wp-content\/uploads\/2021\/02\/How-to-disable-WordPress-Admin-Bar-for-All-Users-Except-Administrators_.jpg","width":1170,"height":500,"caption":"How-to-disable-WordPress-Admin-Bar-for-All-Users-Except-Administrators?"},{"@type":"BreadcrumbList","@id":"https:\/\/www.acmethemes.com\/blog\/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.acmethemes.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to disable WordPress Admin Bar for All Users Except Administrators?"}]},{"@type":"WebSite","@id":"https:\/\/www.acmethemes.com\/blog\/#website","url":"https:\/\/www.acmethemes.com\/blog\/","name":"Acme Themes Blog","description":"WordPress Themes and Plugins, WordPress Tips and Tricks, News and Events","publisher":{"@id":"https:\/\/www.acmethemes.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.acmethemes.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.acmethemes.com\/blog\/#organization","name":"Acme Themes","url":"https:\/\/www.acmethemes.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.acmethemes.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.acmethemes.com\/blog\/wp-content\/uploads\/2016\/12\/acmelogo.jpg","contentUrl":"https:\/\/www.acmethemes.com\/blog\/wp-content\/uploads\/2016\/12\/acmelogo.jpg","width":3600,"height":1800,"caption":"Acme Themes"},"image":{"@id":"https:\/\/www.acmethemes.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/acmethemes\/","https:\/\/x.com\/acme_themes","https:\/\/www.instagram.com\/acmethemes\/","https:\/\/www.linkedin.com\/in\/acmethemes","https:\/\/myspace.com\/acmethemes","https:\/\/www.pinterest.com\/acmethemes\/","https:\/\/www.youtube.com\/c\/AcmeThemes","https:\/\/en.wikipedia.org\/wiki\/User:AcmeThemes"]},{"@type":"Person","@id":"https:\/\/www.acmethemes.com\/blog\/#\/schema\/person\/e67fc2d0d063c62eaf79b5b3e8c57cc6","name":"Pratima Khanal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/27aa2bdf17b17c3ffe0921ef6e4b46bd73a4eba0f2f68e2d9ebf5411acf7a5ea?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/27aa2bdf17b17c3ffe0921ef6e4b46bd73a4eba0f2f68e2d9ebf5411acf7a5ea?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/27aa2bdf17b17c3ffe0921ef6e4b46bd73a4eba0f2f68e2d9ebf5411acf7a5ea?s=96&d=mm&r=g","caption":"Pratima Khanal"},"url":"https:\/\/www.acmethemes.com\/blog\/author\/pratima\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.acmethemes.com\/blog\/wp-json\/wp\/v2\/posts\/8817","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.acmethemes.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.acmethemes.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.acmethemes.com\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.acmethemes.com\/blog\/wp-json\/wp\/v2\/comments?post=8817"}],"version-history":[{"count":6,"href":"https:\/\/www.acmethemes.com\/blog\/wp-json\/wp\/v2\/posts\/8817\/revisions"}],"predecessor-version":[{"id":12444,"href":"https:\/\/www.acmethemes.com\/blog\/wp-json\/wp\/v2\/posts\/8817\/revisions\/12444"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.acmethemes.com\/blog\/wp-json\/wp\/v2\/media\/8825"}],"wp:attachment":[{"href":"https:\/\/www.acmethemes.com\/blog\/wp-json\/wp\/v2\/media?parent=8817"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.acmethemes.com\/blog\/wp-json\/wp\/v2\/categories?post=8817"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.acmethemes.com\/blog\/wp-json\/wp\/v2\/tags?post=8817"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}