<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Guiabreve &#187; Truco</title>
	<atom:link href="http://guiabreve.com/tag/truco/feed" rel="self" type="application/rss+xml" />
	<link>http://guiabreve.com</link>
	<description>Red Bull-based programming</description>
	<lastBuildDate>Mon, 06 Feb 2012 17:22:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Tip WordPress (I): Desactiva el cambio de themes</title>
		<link>http://guiabreve.com/tip-wordpress-desactiva-el-cambio-de-themes.html</link>
		<comments>http://guiabreve.com/tip-wordpress-desactiva-el-cambio-de-themes.html#comments</comments>
		<pubDate>Tue, 20 Sep 2011 08:00:34 +0000</pubDate>
		<dc:creator>Víctor Falcón Ruiz</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Desactivar]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[Themes]]></category>
		<category><![CDATA[Tip]]></category>
		<category><![CDATA[Truco]]></category>
		<category><![CDATA[Wordpress Tip]]></category>

		<guid isPermaLink="false">http://guiabreve.com/?p=954</guid>
		<description><![CDATA[Por lo general, no permitir el cambio de themes en WordPress no parece algo útil. Es más, parece algo estúpido. Pero imaginemos que entregamos una web a un cliente, para evitar problemas, estaría bien desactivar esta opción para que el cliente no toque nada que no debería. Podemos realizar esto facilmente con el archivo functions.php <a href="http://guiabreve.com/tip-wordpress-desactiva-el-cambio-de-themes.html">Continuar &#8594;</a>]]></description>
			<content:encoded><![CDATA[<p>Por lo general, no permitir el cambio de themes en <a href="http://guiabreve.com/tag/Wordpress" title="Wordpress en Guiabreve">WordPress</a> no parece algo útil. Es más, parece algo estúpido. Pero imaginemos que entregamos una web a un cliente, para evitar problemas, estaría bien desactivar esta opción para que el cliente no toque nada que no debería.</p>
<p>Podemos realizar esto facilmente con el archivo <code><a href="http://guiabreve.com/tag/functions-php" title="Trucos con el archivo Functions.php de WordPress">functions.php</a></code> de nuestro theme. Simplemente tenemos que añadir las siguientes lineas:</p>
<pre class="brush:php">add_action('admin_init', 'cwc_lock_theme');
function cwc_lock_theme() {
    global $submenu, $userdata;
    get_currentuserinfo();
    if ($userdata->ID != 1) {
        unset($submenu['themes.php'][5]);
        unset($submenu['themes.php'][15]);
    }
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://guiabreve.com/tip-wordpress-desactiva-el-cambio-de-themes.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

