{"id":3196,"date":"2024-11-24T02:09:28","date_gmt":"2024-11-24T01:09:28","guid":{"rendered":"https:\/\/wypo.io\/?p=3196"},"modified":"2024-11-24T02:10:44","modified_gmt":"2024-11-24T01:10:44","slug":"how-remove-help-tab-administrator-dashboard","status":"publish","type":"post","link":"https:\/\/wypo.io\/en\/how-remove-help-tab-administrator-dashboard\/","title":{"rendered":"How to remove the Help tab from the top of the administrator dashboard"},"content":{"rendered":"            <div class=\"hf_animated fade_bottom none default wp-block-habefast-advanced-layout-group is-layout-constrained wp-block-habefast-advanced-layout-group-is-layout-constrained\">\r\n                <div class=\"wp-block-habefast-advanced-group-container is-style- is-layout-constrained\"  style='--_hfal-cg-d-lg:flex;--_hfal-cg-d-md:flex;--_hfal-cg-d-sm:flex;'>\r\n                                        <div class=\"wp-block-habefast-advanced-group-inner is-layout-flow\">\r\n                        \n\n<p class=\"\">If you manage a WordPress site, you may have noticed the <code>Help<\/code> tab that appears in the top right-hand corner of your admin dashboard. While it can be useful for beginners, this tab is often superfluous for experienced users or for customers for whom you&#8217;ve designed a custom site. Looking to simplify the interface and hide this tab to make the experience more streamlined? In this article, we&#8217;ll explain why and how to remove the <code>Help<\/code> tab in a few simple steps, using a code snippet.<\/p>\n\n                    <\/div>\r\n                <\/div>\r\n            <\/div>\r\n            \n\n            <div class=\"hf_animated fade_bottom none default is-style-smallbordertop wp-block-habefast-advanced-layout-group is-layout-constrained wp-block-habefast-advanced-layout-group-is-layout-constrained\">\r\n                <div class=\"wp-block-habefast-advanced-group-container is-style- is-layout-constrained\"  style='--_hfal-cg-d-lg:flex;--_hfal-cg-p-t-lg:var(--wp--preset--spacing--50);--_hfal-cg-m-t-lg:var(--wp--preset--spacing--50);--_hfal-cg-d-md:flex;--_hfal-cg-d-sm:flex;--_hfal-cg-p-t-md:var(--wp--preset--spacing--50);--_hfal-cg-p-t-sm:var(--wp--preset--spacing--50);--_hfal-cg-m-t-md:var(--wp--preset--spacing--50);--_hfal-cg-m-t-sm:var(--wp--preset--spacing--50);'>\r\n                                        <div class=\"wp-block-habefast-advanced-group-inner is-layout-flow\">\r\n                        \n\n<h2 class=\"wp-block-heading   \" datalink=\"content-delete-help-tab\">Delete Help tab<\/h2>\n\n\n\n<p class=\"\">To remove the <code>Help<\/code> tab from the WordPress dashboard, you need to add a code snippet in your <code>functions.php<\/code> file or in a site-specific plugin (must-use plugin). Here&#8217;s the code to use:<\/p>\n\n\n    <div class=\"wp-block-habefast-code  \">\n      <header class=\"habefast-code-header\">\n        <div class=\"habefast-code-lang is-lang-php\">\n          PHP        <\/div>\n      <\/header>\n      <textarea\n        class=\"habefast-code-source\"\n        name=\"codemirror-1310788172\"\n        id=\"codemirror-1310788172\"\n      >add_filter(&#039;admin_head&#039;, function () {\n    $current_screen = get_current_screen();\n    if ($current_screen) {\n        $current_screen-&gt;remove_help_tabs();\n    }\n}, 999, 0);<\/textarea>\n      <script>\n        CodeMirror.fromTextArea( document.getElementById('codemirror-1310788172'), {\n          mode: {name:'php',startOpen:true},\n          readOnly: true,\n          lineNumbers: true,\n          firstLineNumber: 1,\n          matchBrackets: true,\n          indentUnit: 4,\n          tabSize: 4,\n          lineWrapping: true,\n        } );\n      <\/script>\n    <\/div>\n    \n                    <\/div>\r\n                <\/div>\r\n            <\/div>\r\n            \n\n            <div class=\"hf_animated fade_bottom none default is-style-smallbordertop wp-block-habefast-advanced-layout-group is-layout-constrained wp-block-habefast-advanced-layout-group-is-layout-constrained\">\r\n                <div class=\"wp-block-habefast-advanced-group-container is-style- is-layout-constrained\"  style='--_hfal-cg-d-lg:flex;--_hfal-cg-p-t-lg:var(--wp--preset--spacing--50);--_hfal-cg-m-t-lg:var(--wp--preset--spacing--50);--_hfal-cg-d-md:flex;--_hfal-cg-d-sm:flex;--_hfal-cg-p-t-md:var(--wp--preset--spacing--50);--_hfal-cg-p-t-sm:var(--wp--preset--spacing--50);--_hfal-cg-m-t-md:var(--wp--preset--spacing--50);--_hfal-cg-m-t-sm:var(--wp--preset--spacing--50);'>\r\n                                        <div class=\"wp-block-habefast-advanced-group-inner is-layout-flow\">\r\n                        \n\n<h2 class=\"wp-block-heading   \" datalink=\"content-target-the-articles-page-only\">Target the articles page only<\/h2>\n\n\n\n<p class=\"\">To remove the <code>Help<\/code> tab from the article listing page only, use this code:<\/p>\n\n\n    <div class=\"wp-block-habefast-code  \">\n      <header class=\"habefast-code-header\">\n        <div class=\"habefast-code-lang is-lang-php\">\n          PHP        <\/div>\n      <\/header>\n      <textarea\n        class=\"habefast-code-source\"\n        name=\"codemirror-550556666\"\n        id=\"codemirror-550556666\"\n      >add_filter(&#039;admin_head&#039;, function () {\n    $current_screen = get_current_screen();\n    if ($current_screen &amp;&amp; $current_screen-&gt;id === &#039;edit-post&#039;) {\n        $current_screen-&gt;remove_help_tabs();\n    }\n}, 999, 0);<\/textarea>\n      <script>\n        CodeMirror.fromTextArea( document.getElementById('codemirror-550556666'), {\n          mode: {name:'php',startOpen:true},\n          readOnly: true,\n          lineNumbers: true,\n          firstLineNumber: 1,\n          matchBrackets: true,\n          indentUnit: 4,\n          tabSize: 4,\n          lineWrapping: true,\n        } );\n      <\/script>\n    <\/div>\n    \n                    <\/div>\r\n                <\/div>\r\n            <\/div>\r\n            \n\n            <div class=\"hf_animated fade_bottom none default is-style-smallbordertop wp-block-habefast-advanced-layout-group is-layout-constrained wp-block-habefast-advanced-layout-group-is-layout-constrained\">\r\n                <div class=\"wp-block-habefast-advanced-group-container is-style- is-layout-constrained\"  style='--_hfal-cg-d-lg:flex;--_hfal-cg-p-t-lg:var(--wp--preset--spacing--50);--_hfal-cg-m-t-lg:var(--wp--preset--spacing--50);--_hfal-cg-d-md:flex;--_hfal-cg-d-sm:flex;--_hfal-cg-p-t-md:var(--wp--preset--spacing--50);--_hfal-cg-p-t-sm:var(--wp--preset--spacing--50);--_hfal-cg-m-t-md:var(--wp--preset--spacing--50);--_hfal-cg-m-t-sm:var(--wp--preset--spacing--50);'>\r\n                                        <div class=\"wp-block-habefast-advanced-group-inner is-layout-flow\">\r\n                        \n\n<h2 class=\"wp-block-heading   \" datalink=\"content-tip-for-finding-other-screen-ids\">Tip for finding other screen IDs<\/h2>\n\n\n\n<p class=\"\">If you want to apply this method to other administration pages, you can display the screen IDs to easily identify them. Add this temporary code to your <code>functions.php<\/code> file:<\/p>\n\n\n    <div class=\"wp-block-habefast-code  \">\n      <header class=\"habefast-code-header\">\n        <div class=\"habefast-code-lang is-lang-php\">\n          PHP        <\/div>\n      <\/header>\n      <textarea\n        class=\"habefast-code-source\"\n        name=\"codemirror-1759539388\"\n        id=\"codemirror-1759539388\"\n      >add_filter(&#039;admin_head&#039;, function () {\n    $current_screen = get_current_screen();\n    if($current_screen){\n        error_log(&#039;ID de l\u2019\u00e9cran actuel : &#039; . $current_screen-&gt;id);\n    }\n}, 999, 0);<\/textarea>\n      <script>\n        CodeMirror.fromTextArea( document.getElementById('codemirror-1759539388'), {\n          mode: {name:'php',startOpen:true},\n          readOnly: true,\n          lineNumbers: true,\n          firstLineNumber: 1,\n          matchBrackets: true,\n          indentUnit: 4,\n          tabSize: 4,\n          lineWrapping: true,\n        } );\n      <\/script>\n    <\/div>\n    \n                    <\/div>\r\n                <\/div>\r\n            <\/div>\r\n            ","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_habefastfse_class":"","hf_wpseo_meta_title":"How to remove the Help tab in WordPress [separator] [sitetitle]","hf_wpseo_meta_description":"Find out how to remove the Help tab from the WordPress dashboard. Follow our guide with a simple and effective code snippet.","hf_wpseo_meta_robots_index":"","hf_wpseo_meta_robots_follow":true,"hf_wpseo_meta_robots_advanced":"{}","hf_wpseo_meta_canonical_url":"","footnotes":""},"categories":[28],"tags":[],"class_list":["post-3196","post","type-post","status-publish","format-standard","hentry","category-developer"],"_links":{"self":[{"href":"https:\/\/wypo.io\/en\/wp-json\/wp\/v2\/posts\/3196","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wypo.io\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wypo.io\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wypo.io\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wypo.io\/en\/wp-json\/wp\/v2\/comments?post=3196"}],"version-history":[{"count":4,"href":"https:\/\/wypo.io\/en\/wp-json\/wp\/v2\/posts\/3196\/revisions"}],"predecessor-version":[{"id":3200,"href":"https:\/\/wypo.io\/en\/wp-json\/wp\/v2\/posts\/3196\/revisions\/3200"}],"wp:attachment":[{"href":"https:\/\/wypo.io\/en\/wp-json\/wp\/v2\/media?parent=3196"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wypo.io\/en\/wp-json\/wp\/v2\/categories?post=3196"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wypo.io\/en\/wp-json\/wp\/v2\/tags?post=3196"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}