<?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>Dashifen.com &#187; Wordpress</title>
	<atom:link href="http://dashifen.com/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://dashifen.com</link>
	<description>The online musings of an unrepentant geek.</description>
	<lastBuildDate>Wed, 18 Jan 2012 23:30:51 +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>Disabling the WordPress Admin Area</title>
		<link>http://dashifen.com/disabling-the-wordpress-admin-area/</link>
		<comments>http://dashifen.com/disabling-the-wordpress-admin-area/#comments</comments>
		<pubDate>Sun, 09 Jan 2011 05:14:11 +0000</pubDate>
		<dc:creator>David Dashifen Kees</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[disable-login]]></category>
		<category><![CDATA[functions.php]]></category>

		<guid isPermaLink="false">http://dashifen.com/?p=183</guid>
		<description><![CDATA[While working on a different project, I had the occasion to require the disabling of the WordPress administrative area and the login capabilities of all users of the site.  After some googling around, it seemed that while &#8220;maintenance mode&#8221; style plugins were readily available, there wasn&#8217;t one that simply turned off the ability to login [...]]]></description>
			<content:encoded><![CDATA[<p>While working on a different project, I had the occasion to require the disabling of the WordPress administrative area and the login capabilities of all users of the site.  After some googling around, it seemed that while &#8220;maintenance mode&#8221; style plugins were readily available, there wasn&#8217;t one that simply turned off the ability to login and make changes to your site while concurrently still allowing others to browse and enjoy your content.</p>
<p>So, without further ado, my solution.  Just add this to your functions.php file:</p>
<pre>function dashifen_disable_login_and_admin() {
   if(
      strpos($_SERVER["SCRIPT_NAME"], "wp-login") !== false ||
      strpos($_SERVER["SCRIPT_NAME"], "wp-admin") !== false
   ) exit("Administration disabled.");
}

add_action("init", "dashifen_disable_login_and_admin");
</pre>
<p>Obviously, you can change the name of the function to suit your needs; just be sure to change it both in the definition and in the add_action() call.  It could also be spruced up a bit.  Even a simple redirection to a specific page on your site that perhaps gives reasons why you&#8217;re disabling the administration of your site would be better than a fairly bland message, but it serves the purposes I needed it for until a better solution is presented.</p>
<p>I&#8217;ll now go back into my cave and post again in a few months.</p>
]]></content:encoded>
			<wfw:commentRss>http://dashifen.com/disabling-the-wordpress-admin-area/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hey! I can blog on the go!</title>
		<link>http://dashifen.com/hey-i-can-blog-on-the-go/</link>
		<comments>http://dashifen.com/hey-i-can-blog-on-the-go/#comments</comments>
		<pubDate>Wed, 01 Dec 2010 20:39:31 +0000</pubDate>
		<dc:creator>David Dashifen Kees</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[apps]]></category>
		<category><![CDATA[mobile]]></category>

		<guid isPermaLink="false">http://dashifen.com/hey-i-can-blog-on-the-go/</guid>
		<description><![CDATA[Amazing! I can actually write a blog post with my new iPod Touch. It&#8217;s not exactly fast and I suspect I won&#8217;t use it too often, but this is still pretty sweet.]]></description>
			<content:encoded><![CDATA[<p>Amazing! I can actually write a blog post with my new iPod Touch. It&#8217;s not exactly fast and I suspect I won&#8217;t use it too often, but this is still pretty sweet.</p>
]]></content:encoded>
			<wfw:commentRss>http://dashifen.com/hey-i-can-blog-on-the-go/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

