<?xml version="1.0" encoding="UTF-8"?><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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to block WordPress admin menu item</title>
	<atom:link href="http://www.shinephp.com/how-to-block-wordpress-admin-menu-item/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.shinephp.com/how-to-block-wordpress-admin-menu-item/</link>
	<description>WordPress, PHP, MySQL, general WEB development hints, reviews, plugins, news...</description>
	<lastBuildDate>Wed, 08 Feb 2012 17:52:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Eric</title>
		<link>http://www.shinephp.com/how-to-block-wordpress-admin-menu-item/comment-page-1/#comment-1433</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Sun, 24 Jul 2011 22:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.shinephp.com/?p=867#comment-1433</guid>
		<description>Thanks, I&#039;ll give that a try!</description>
		<content:encoded><![CDATA[<p>Thanks, I&#8217;ll give that a try!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vladimir Garagulya</title>
		<link>http://www.shinephp.com/how-to-block-wordpress-admin-menu-item/comment-page-1/#comment-1430</link>
		<dc:creator>Vladimir Garagulya</dc:creator>
		<pubDate>Sun, 24 Jul 2011 01:11:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.shinephp.com/?p=867#comment-1430</guid>
		<description>You should unset
&lt;code&gt;$submenu[&#039;themes.php&#039;][5]&lt;/code&gt; and
block access to the &lt;code&gt;themes.php&lt;/code&gt; file.</description>
		<content:encoded><![CDATA[<p>You should unset<br />
<code>$submenu['themes.php'][5]</code> and<br />
block access to the <code>themes.php</code> file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://www.shinephp.com/how-to-block-wordpress-admin-menu-item/comment-page-1/#comment-1429</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Sun, 24 Jul 2011 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.shinephp.com/?p=867#comment-1429</guid>
		<description>What is if you want to only block a submenu and not the whole section?  Say the &quot;Themes&quot; sub menu from &quot;Appearance&quot;?</description>
		<content:encoded><![CDATA[<p>What is if you want to only block a submenu and not the whole section?  Say the &#8220;Themes&#8221; sub menu from &#8220;Appearance&#8221;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vladimir Garagulya</title>
		<link>http://www.shinephp.com/how-to-block-wordpress-admin-menu-item/comment-page-1/#comment-1373</link>
		<dc:creator>Vladimir Garagulya</dc:creator>
		<pubDate>Thu, 30 Jun 2011 13:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.shinephp.com/?p=867#comment-1373</guid>
		<description>Agree. Thanks, Ruggero for the code enhancement.</description>
		<content:encoded><![CDATA[<p>Agree. Thanks, Ruggero for the code enhancement.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruggero Rossi</title>
		<link>http://www.shinephp.com/how-to-block-wordpress-admin-menu-item/comment-page-1/#comment-1370</link>
		<dc:creator>Ruggero Rossi</dc:creator>
		<pubDate>Thu, 30 Jun 2011 10:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.shinephp.com/?p=867#comment-1370</guid>
		<description>In wp 3.1.3 you have to change these lines:
$userRole = ($current_user-&gt;data-&gt;wp_capabilities);
$role = key($userRole);
unset($userRole);
if ($role==&#039;subscriber&#039;) {

with:

if(user_can($current_user, &#039;subscriber&#039;)) {</description>
		<content:encoded><![CDATA[<p>In wp 3.1.3 you have to change these lines:<br />
$userRole = ($current_user-&gt;data-&gt;wp_capabilities);<br />
$role = key($userRole);<br />
unset($userRole);<br />
if ($role==&#8217;subscriber&#8217;) {</p>
<p>with:</p>
<p>if(user_can($current_user, &#8217;subscriber&#8217;)) {</p>
]]></content:encoded>
	</item>
</channel>
</rss>

