&lt;?xml version="1.0" encoding="utf-8"?>
        <sphinx:docset>
            <sphinx:schema>
              <sphinx:field name="title"/>
              <sphinx:attr name="title" type="string"/>
              <sphinx:attr name="link" type="string"/>
              <sphinx:field name="content"/>
              <sphinx:attr name="content" type="string"/>
              <sphinx:attr name="pubDate" type="timestamp"/>
              
            </sphinx:schema>
            
            <sphinx:document id="1080 ">
              <title>&lt;![CDATA[Adding a sub-menu in the wordpress admin menu :)]]></title>
              <link>&lt;![CDATA[/2010/07/29/adding-submenu-wordpress-admin-menu/]]></link>
              <pubDate>1280376906</pubDate>
              <content>&lt;![CDATA[ For the impatient ones, first the code:
(in wp-admin folder, open the file menu.php) and locate the code:
$submenu[&amp;amp;#8217;edit.php&amp;amp;#8217;][10] = array( _x(&amp;amp;#8217;Add New&amp;amp;#8217;, &amp;amp;#8217;post&amp;amp;#8217;), &amp;amp;#8217;edit_posts&amp;amp;#8217;, &amp;amp;#8217;post-new.php&amp;amp;#8217; );
and add the below:
$submenu[&amp;amp;#8217;edit.php&amp;amp;#8217;][7] = array( _x(&amp;amp;#8217;Pending&amp;amp;#8217;, &amp;amp;#8217;post&amp;amp;#8217;), &amp;amp;#8217;edit_posts&amp;amp;#8217;, &amp;amp;#8217;edit.php?post_status=pending&amp;amp;post_type=post&amp;amp;#8217; );
And now the explanation and why do you need this 🙂
Problem:
There is no direct mechanism to access the pending posts in WP admin. I generally post through email and mark them as pending. So, whenever I go to my admin POSTs page, I will look through the list of pending items and post them as and when required. For this, when I am done with changes in one item, I need to either modify the address bar or need to go to posts link and then click the Pending items.
I kind of did not like this so added one submenu just below the add new.. Cool, this is my first hack of the WP-core to get something going. For Plugins and sidebar I have kept doing this anywasys 🙂&amp;lt;h6 class=&amp;quot;zemanta-related-title&amp;quot; style=&amp;quot;font-size: 1em;&amp;quot;&amp;gt;Related articles by Zemanta &amp;lt;ul class=&amp;quot;zemanta-article-ul&amp;quot;&amp;gt; &amp;lt;li class=&amp;quot;zemanta-article-ul-li&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;http://www.twm-kd.com/computers/software/using-menus-in-wordpress-3-0/&amp;quot;&amp;gt;Using menus in WordPress 3.0 (twm-kd.com) &amp;lt;li class=&amp;quot;zemanta-article-ul-li&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;http://pressography.com/wordpress/12-new-multisite-tools-for-network-management-in-wordpress-3-0/&amp;quot;&amp;gt;12 New Multisite Tools for Network Management in WordPress 3.0 (pressography.com) &amp;lt;li class=&amp;quot;zemanta-article-ul-li&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;http://wpmu.org/12-new-multisite-tools-for-network-management-in-wordpress-3-0/&amp;quot;&amp;gt;12 New Multisite Tools for Network Management in WordPress 3.0 (wpmu.org) &amp;lt;li class=&amp;quot;zemanta-article-ul-li&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;http://www.makeuseof.com/tag/create-registration-form-types-forms-wordpress-cformsii/&amp;quot;&amp;gt;How To Create A Registration Form (and other forms) In WordPress Using cformsII (makeuseof.com) &amp;lt;li class=&amp;quot;zemanta-article-ul-li&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;http://thinkvitamin.com/dev/getting-started-with-wordpress-custom-menus/&amp;quot;&amp;gt;Getting Started with WordPress Custom Menus (thinkvitamin.com) &amp;lt;div class=&amp;quot;zemanta-pixie&amp;quot; style=&amp;quot;margin-top: 10px; height: 15px;&amp;quot;&amp;gt;&amp;lt;a class=&amp;quot;zemanta-pixie-a&amp;quot; title=&amp;quot;Enhanced by Zemanta&amp;quot; href=&amp;quot;http://www.zemanta.com/&amp;quot;&amp;gt;&amp;lt;img class=&amp;quot;zemanta-pixie-img&amp;quot; style=&amp;quot;border: medium none; float: right;&amp;quot; src=&amp;quot;http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/zemified_e8.png&amp;quot; alt=&amp;quot;Enhanced by Zemanta&amp;quot; /&amp;gt;&amp;lt;span class=&amp;quot;zem-script more-related pretty-attribution&amp;quot;&amp;gt;
]]></content>
             </sphinx:document>
            
          
        </sphinx:docset>
