<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Menu Php on Amit Agarwal Linux Blog</title>
    <link>/tags/menu-php/</link>
    <description>Recent content in Menu Php on Amit Agarwal Linux Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Thu, 29 Jul 2010 04:15:06 +0000</lastBuildDate>
    
	<atom:link href="/tags/menu-php/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>Adding a sub-menu in the wordpress admin menu :)</title>
      <link>/2010/07/29/adding-submenu-wordpress-admin-menu/</link>
      <pubDate>Thu, 29 Jul 2010 04:15:06 +0000</pubDate>
      
      <guid>/2010/07/29/adding-submenu-wordpress-admin-menu/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;For the impatient ones, first the code:&lt;br&gt;
(in wp-admin folder, open the file menu.php) and locate the code:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;$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; );&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;and add the below:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;$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; );&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;And now the explanation and why do you need this 🙂&lt;/p&gt;
&lt;p&gt;Problem:&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
