<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: remove &#34;forms&#34; menu item from admin</title>
		<link>https://legacy.forums.gravityhelp.com/topic/remove-forms-menu-item-from-admin</link>
		<description>Gravity Support Forums Topic: remove &quot;forms&quot; menu item from admin</description>
		<language>en-US</language>
		<pubDate>Mon, 06 Apr 2026 18:53:58 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/remove-forms-menu-item-from-admin" rel="self" type="application/rss+xml" />

		<item>
			<title>Alex Cancado on "remove &#34;forms&#34; menu item from admin"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/remove-forms-menu-item-from-admin#post-29357</link>
			<pubDate>Thu, 07 Jul 2011 14:47:58 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">29357@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;There were a couple of things that needed to be changed in your code.&#60;br /&#62;
Try the following&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function remove_menu_items() {
  global $menu;
  $restricted = array(__(&#38;#39;Links&#38;#39;), __(&#38;#39;Comments&#38;#39;), __(&#38;#39;Media&#38;#39;),
  __(&#38;#39;Plugins&#38;#39;), __(&#38;#39;Tools&#38;#39;), __(&#38;#39;Users&#38;#39;), __(&#38;#39;Pages&#38;#39;), __(&#38;#39;Posts&#38;#39;), __(&#38;#39;Dashboard&#38;#39;), __(&#38;#39;Forms&#38;#39;), __(&#38;#39;Appearance&#38;#39;), __(&#38;#39;Settings&#38;#39;));
  end ($menu);
  do
  {
    $value = explode(&#38;#39; &#38;#39;,$menu[key($menu)][0]);
    if(in_array($value[0] != NULL?$value[0]:&#38;quot;&#38;quot; , $restricted)){
      unset($menu[key($menu)]);}
    }
    while (prev($menu));
  }
add_action(&#38;#39;admin_menu&#38;#39;, &#38;#39;remove_menu_items&#38;#39;, 11);&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>dfstorm on "remove &#34;forms&#34; menu item from admin"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/remove-forms-menu-item-from-admin#post-29281</link>
			<pubDate>Thu, 07 Jul 2011 05:37:03 +0000</pubDate>
			<dc:creator>dfstorm</dc:creator>
			<guid isPermaLink="false">29281@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Any Ideas
&#60;/p&#62;</description>
		</item>
		<item>
			<title>dfstorm on "remove &#34;forms&#34; menu item from admin"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/remove-forms-menu-item-from-admin#post-29266</link>
			<pubDate>Wed, 06 Jul 2011 22:35:42 +0000</pubDate>
			<dc:creator>dfstorm</dc:creator>
			<guid isPermaLink="false">29266@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;In my functions file i have some code to remove various WP Menu items. &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function remove_menu_items() {
  global $menu;
  $restricted = array(__(&#38;#39;Links&#38;#39;), __(&#38;#39;Comments&#38;#39;), __(&#38;#39;Media&#38;#39;),
  __(&#38;#39;Plugins&#38;#39;), __(&#38;#39;Tools&#38;#39;), __(&#38;#39;Users&#38;#39;), __(&#38;#39;Pages&#38;#39;), __(&#38;#39;Posts&#38;#39;), __(&#38;#39;Dashboard&#38;#39;), __(&#38;#39;Forms&#38;#39;), __(&#38;#39;Appearance&#38;#39;), __(&#38;#39;Settings&#38;#39;));
  end ($menu);
  while (prev($menu)){
    $value = explode(&#38;#39; &#38;#39;,$menu[key($menu)][0]);
    if(in_array($value[0] != NULL?$value[0]:&#38;quot;&#38;quot; , $restricted)){
      unset($menu[key($menu)]);}
    }
  }

add_action(&#38;#39;admin_menu&#38;#39;, &#38;#39;remove_menu_items&#38;#39;);
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Everything works as expected except for the &#34;forms&#34; menu item&#34;.&#60;/p&#62;
&#60;p&#62;What am i missing?&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
