<?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: Custom Post Type Permalinks</title>
	<atom:link href="http://shibashake.com/wordpress-theme/custom-post-type-permalinks/feed" rel="self" type="application/rss+xml" />
	<link>http://shibashake.com/wordpress-theme/custom-post-type-permalinks</link>
	<description>Dynamic WordPress Theme</description>
	<lastBuildDate>Mon, 09 Jan 2012 17:17:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: ShibaShake</title>
		<link>http://shibashake.com/wordpress-theme/custom-post-type-permalinks#comment-1973</link>
		<dc:creator>ShibaShake</dc:creator>
		<pubDate>Wed, 11 Aug 2010 17:16:48 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=6415#comment-1973</guid>
		<description>I usually flush the rewrite rules on my deactivation function - i.e. the function tied to my plugin deactivation hook.

&lt;pre lang=&quot;PHP&quot;&gt;
register_deactivation_hook( __FILE__, &#039;my_deactivate_function&#039;  );

function my_deactivate_function() {
    	global $wp_rewrite;
	$wp_rewrite-&gt;flush_rules();	
}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>I usually flush the rewrite rules on my deactivation function &#8211; i.e. the function tied to my plugin deactivation hook.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">register_deactivation_hook<span style="color: #009900;">&#40;</span> <span style="color: #009900; font-weight: bold;">__FILE__</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'my_deactivate_function'</span>  <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> my_deactivate_function<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    	<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$wp_rewrite</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$wp_rewrite</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">flush_rules</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>	
<span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Kirsy</title>
		<link>http://shibashake.com/wordpress-theme/custom-post-type-permalinks#comment-1954</link>
		<dc:creator>Kirsy</dc:creator>
		<pubDate>Tue, 10 Aug 2010 08:13:41 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=6415#comment-1954</guid>
		<description>Hi There! Thanks for the post. I&#039;m kind of a newby with this stuff. Can you tell me where (which .php?) i need to ad this:

global $wp_rewrite;
$wp_rewrite-&gt;flush_rules();

Hope you can help me out..
Tnx! Kirsy</description>
		<content:encoded><![CDATA[<p>Hi There! Thanks for the post. I&#8217;m kind of a newby with this stuff. Can you tell me where (which .php?) i need to ad this:</p>
<p>global $wp_rewrite;<br />
$wp_rewrite-&gt;flush_rules();</p>
<p>Hope you can help me out..<br />
Tnx! Kirsy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: http://shibashake.com/wordpress-theme/cu&#8230; &#171; rtCafe</title>
		<link>http://shibashake.com/wordpress-theme/custom-post-type-permalinks#comment-1801</link>
		<dc:creator>http://shibashake.com/wordpress-theme/cu&#8230; &#171; rtCafe</dc:creator>
		<pubDate>Sat, 17 Jul 2010 04:52:32 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=6415#comment-1801</guid>
		<description>[...] http://shibashake.com/wordpress-theme/custom-post-type-permalinks  &#160; [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://shibashake.com/wordpress-theme/custom-post-type-permalinks" rel="nofollow">http://shibashake.com/wordpress-theme/custom-post-type-permalinks</a>  &nbsp; [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Database Caching 10/29 queries in 0.053 seconds using disk: basic
Object Caching 362/409 objects using disk: basic

Served from: shibashake.com @ 2012-01-10 00:55:51 -->
