Hiding Help Menu from Admin Panel

  • iftekhar
  • Mar 23, 2014
  • 0 comment
  • 1444 Views
  • Print

I recently came across some very interesting WordPress actions from it’s Codex page. While playing around with one of them I figured a way to hide the “Help” menu from WordPress admin panel (top right hand corner of the screen). Using conditions, we can even do more with this action. Like hiding the help menu only for users or for administrator.

Perhaps, if you want to disable it for everyone that’s even easier. Here is the snippet to hide the Help menu for all.

<?php
function hide_help_menu() {
   echo '<style type="text/css">
     #contextual-help-link-wrap { display: none !important; }
   </style>'; }
add_action('admin_head','hide_help_menu');
?>

In case if you change your mind to hide it only for yourself (Admin), simply add an is_admin conditional tag and wrap it around with if statement. This is how it looks like:

<?php
function hide_help_menu() {
   if(is_admin()) {
     echo '<style type="text/css">
     #contextual-help-link-wrap { display: none !important; }
     </style>'; } }
add_action('admin_head','hide_help_menu');
?>

Simply place any one of the snippet on your theme’s functions.php file and update the page. Let us know if that works for you or not. Feel free to drop a line or two with your question from the comment section below. Thanks.

Source: WordPress Codex

  •  
  •  

Comment

Leave a Reply

Note: Convet HTML, PHP, JavaScripts from Postable, before posting from comment section.
License: By submitting a comment here you grant this site a perpetual license to reproduce your words and name/Web site in attribution. Please use your real name or a pseudonym (i.e., pen name, alias, nom de plume) when commenting. If you add your site name, company name, or something completely random, I'll likely change it to whatever I want.