<?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: WordPress Plugin Deinstall Data Automatically</title>
	<atom:link href="http://wpengineer.com/35/wordpress-plugin-deinstall-data-automatically/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpengineer.com/35/wordpress-plugin-deinstall-data-automatically/</link>
	<description>WordPress News, Hacks, Tips, Tutorials, Plugins and Themes</description>
	<lastBuildDate>Tue, 22 May 2012 12:01:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Juergen</title>
		<link>http://wpengineer.com/35/wordpress-plugin-deinstall-data-automatically/#comment-4453</link>
		<dc:creator>Juergen</dc:creator>
		<pubDate>Fri, 04 Jun 2010 07:09:50 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=35#comment-4453</guid>
		<description>I have to correct myself
It&#039;s delete_metadata
with
delete_metadata(&#039;post&#039;, null, &#039;my_metadata_key&#039;, null, $delete_all = true);

you can delete all post metadate with the key &#039;metadata&#039;</description>
		<content:encoded><![CDATA[<p>I have to correct myself<br />
It's delete_metadata<br />
with<br />
delete_metadata('post', null, 'my_metadata_key', null, $delete_all = true);</p>
<p>you can delete all post metadate with the key 'metadata'</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://wpengineer.com/35/wordpress-plugin-deinstall-data-automatically/#comment-79</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Fri, 31 Oct 2008 05:14:56 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=35#comment-79</guid>
		<description>@Ade:
&lt;ol&gt;
&lt;li&gt;I think Hook ist better; no new request.&lt;/li&gt;
&lt;li&gt;yes, i see also this&lt;/li&gt;
&lt;/ol&gt;
My favorite way ist the hook, small, easy and clean.
Best wishes.</description>
		<content:encoded><![CDATA[<p>@Ade:</p>
<ol>
<li>I think Hook ist better; no new request.</li>
<li>yes, i see also this</li>
</ol>
<p>My favorite way ist the hook, small, easy and clean.<br />
Best wishes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ade</title>
		<link>http://wpengineer.com/35/wordpress-plugin-deinstall-data-automatically/#comment-45</link>
		<dc:creator>Ade</dc:creator>
		<pubDate>Tue, 28 Oct 2008 18:13:36 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=35#comment-45</guid>
		<description>Frank,

Thanks for the very useful article.  A couple of questions, if I may:

1. In your opinion which of the two methods (file or hook) is better?

2. To maintain backwards compatibility with pre 2.7 versions of WP, it seems to me that it would be useful to keep the register_deactivation_hook with a function to delete options, called by a conditional check if WP_UNINSTALL_PLUGIN doesn&#039;t exist. Does this seem a good idea to you?  If so, it seems to me that using the uninstall hook would be the best option (rather than use an uninstall file).

I&#039;m fairly new to all this, so any pointers you can give me will be much appreciated!

Thanks in advance. Once again, thanks for the useful articles on your site.

Ade.</description>
		<content:encoded><![CDATA[<p>Frank,</p>
<p>Thanks for the very useful article.  A couple of questions, if I may:</p>
<p>1. In your opinion which of the two methods (file or hook) is better?</p>
<p>2. To maintain backwards compatibility with pre 2.7 versions of WP, it seems to me that it would be useful to keep the register_deactivation_hook with a function to delete options, called by a conditional check if WP_UNINSTALL_PLUGIN doesn't exist. Does this seem a good idea to you?  If so, it seems to me that using the uninstall hook would be the best option (rather than use an uninstall file).</p>
<p>I'm fairly new to all this, so any pointers you can give me will be much appreciated!</p>
<p>Thanks in advance. Once again, thanks for the useful articles on your site.</p>
<p>Ade.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

