Title: Cannot remove &#8216;comments&#8217; menu item
Last modified: August 19, 2016

---

# Cannot remove ‘comments’ menu item

 *  [shadd](https://wordpress.org/support/users/shadd/)
 * (@shadd)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/cannot-remove-comments-menu-item/)
 * Hi Guys,
 * I am trying to remove the Comments menu from the admin panel but no matter what
   I do it stays put. All the other menu items can be removed, just not the comments
   one. Below is my code:
 *     ```
       global $menu, $submenu, $user_ID;
       $the_user = new WP_User($user_ID);
       reset($menu); $page = key($menu);
   
       /*Get Menu Item*/
       while (('Comments' != $menu[$page][0]) && next($menu)) {
       		$page = key($menu);
       }
   
       /*Unset Menu Item*/
       if ('Comments' == $menu[$page][0]) {
       	unset($menu[$page]);
       }
       reset($menu); $page = key($menu);
       ```
   

The topic ‘Cannot remove ‘comments’ menu item’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [shadd](https://wordpress.org/support/users/shadd/)
 * Last activity: [16 years, 5 months ago](https://wordpress.org/support/topic/cannot-remove-comments-menu-item/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
