<?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: Draft Notification Plugin for WordPress</title>
	<atom:link href="http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/</link>
	<description>WordPress Plugins, PHP Scripts, Tools, and Tutorials</description>
	<lastBuildDate>Fri, 06 Nov 2009 17:35:28 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Serge</title>
		<link>http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/comment-page-2/#comment-497372</link>
		<dc:creator>Serge</dc:creator>
		<pubDate>Thu, 15 Oct 2009 13:31:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/#comment-497372</guid>
		<description>HI, 

I have to admit that I don&#039;t know anything about scripts, In our blog, there is five administrators (same level). How can ths script be modified to make sure the alert is sent to only one recipient (myself) ?
Thanks in advance for your reply.

P.-S. Sorry for the bad English.</description>
		<content:encoded><![CDATA[<p>HI, </p>
<p>I have to admit that I don&#8217;t know anything about scripts, In our blog, there is five administrators (same level). How can ths script be modified to make sure the alert is sent to only one recipient (myself) ?<br />
Thanks in advance for your reply.</p>
<p>P.-S. Sorry for the bad English.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kenneth Lim</title>
		<link>http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/comment-page-2/#comment-494986</link>
		<dc:creator>Kenneth Lim</dc:creator>
		<pubDate>Wed, 16 Sep 2009 12:07:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/#comment-494986</guid>
		<description>Tested but the email is not sent out. no problem with new user registration email.</description>
		<content:encoded><![CDATA[<p>Tested but the email is not sent out. no problem with new user registration email.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Admin</title>
		<link>http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/comment-page-2/#comment-482639</link>
		<dc:creator>Admin</dc:creator>
		<pubDate>Tue, 07 Jul 2009 00:13:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/#comment-482639</guid>
		<description>&lt;b&gt;Jerod&lt;/b&gt;: This plugin does not currently have a settings page.

I just tested again on one of my WP 2.8 installs and it worked fine for me. Me sure you have your admin email address set properly in your WP user profile. Also, you might make sure it is not getting blocked by a spam filter, etc..</description>
		<content:encoded><![CDATA[<p><b>Jerod</b>: This plugin does not currently have a settings page.</p>
<p>I just tested again on one of my WP 2.8 installs and it worked fine for me. Me sure you have your admin email address set properly in your WP user profile. Also, you might make sure it is not getting blocked by a spam filter, etc..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerod</title>
		<link>http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/comment-page-2/#comment-482609</link>
		<dc:creator>Jerod</dc:creator>
		<pubDate>Mon, 06 Jul 2009 13:37:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/#comment-482609</guid>
		<description>I have uploaded the plugin and really want to use it.  I am hoping that it will integrate nicely with P2 and alert me when a new post is written.  However, after activating the plugin and I cannot find any place in the dashboard where I can change the settings.  And I have not gotten it to work yet, as no emails have come my way.  Using WordPress 2.8.  Any helpful hints on what my problem could be?</description>
		<content:encoded><![CDATA[<p>I have uploaded the plugin and really want to use it.  I am hoping that it will integrate nicely with P2 and alert me when a new post is written.  However, after activating the plugin and I cannot find any place in the dashboard where I can change the settings.  And I have not gotten it to work yet, as no emails have come my way.  Using WordPress 2.8.  Any helpful hints on what my problem could be?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Admin</title>
		<link>http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/comment-page-1/#comment-482585</link>
		<dc:creator>Admin</dc:creator>
		<pubDate>Mon, 06 Jul 2009 00:37:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/#comment-482585</guid>
		<description>&lt;strong&gt;ron&lt;/strong&gt;: That is just where the variable is defined. In the actual SQL statement, the proper code is used.</description>
		<content:encoded><![CDATA[<p><strong>ron</strong>: That is just where the variable is defined. In the actual SQL statement, the proper code is used.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ron G</title>
		<link>http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/comment-page-1/#comment-482434</link>
		<dc:creator>ron G</dc:creator>
		<pubDate>Thu, 02 Jul 2009 13:21:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/#comment-482434</guid>
		<description>Hey Admin, I didn&#039;t check your actual code but in your posting, I believe you need &quot;$email_user_level = 7;&quot; to be &quot;&gt;= 7&quot; to include all level 7 users and ABOVE.  Currently it would only email level 7 users.</description>
		<content:encoded><![CDATA[<p>Hey Admin, I didn&#8217;t check your actual code but in your posting, I believe you need &#8220;$email_user_level = 7;&#8221; to be &#8220;&gt;= 7&#8243; to include all level 7 users and ABOVE.  Currently it would only email level 7 users.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Admin</title>
		<link>http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/comment-page-1/#comment-482414</link>
		<dc:creator>Admin</dc:creator>
		<pubDate>Thu, 02 Jul 2009 02:41:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/#comment-482414</guid>
		<description>&lt;strong&gt;Version 1.22 has been released&lt;/strong&gt;

You can now choose to send the email notifications by user level. See above for the option. This release has been tested, and works, in the latest release of WordPress - 2.8

&lt;strong&gt;ron G&lt;/strong&gt;: Thanks!</description>
		<content:encoded><![CDATA[<p><strong>Version 1.22 has been released</strong></p>
<p>You can now choose to send the email notifications by user level. See above for the option. This release has been tested, and works, in the latest release of WordPress &#8211; 2.8</p>
<p><strong>ron G</strong>: Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ronG</title>
		<link>http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/comment-page-1/#comment-476788</link>
		<dc:creator>ronG</dc:creator>
		<pubDate>Tue, 12 May 2009 19:11:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/#comment-476788</guid>
		<description>Sorry I forgot a small but major piece of code.  Where it says:

&lt;code&gt;
foreach ($editors as $editor) {			
   $user_info = get_userdata($editor);
   $recipient .= $user_info-&gt;user_email . &#039;,&#039;;
}
&lt;/code&gt;

it should be:

&lt;code&gt;
foreach ($editors as $editor) {			
   $user_info = get_userdata($editor-&gt;user_id);
   $recipient .= $user_info-&gt;user_email . &#039;,&#039;;
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Sorry I forgot a small but major piece of code.  Where it says:</p>
<p><pre><code>
foreach ($editors as $editor) {			
   $user_info = get_userdata($editor);
   $recipient .= $user_info-&gt;user_email . ',';
}
</code></pre></p>
<p>it should be:</p>
<p><pre><code>
foreach ($editors as $editor) {			
   $user_info = get_userdata($editor-&gt;user_id);
   $recipient .= $user_info-&gt;user_email . ',';
}
</code></pre></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ron G</title>
		<link>http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/comment-page-1/#comment-476785</link>
		<dc:creator>ron G</dc:creator>
		<pubDate>Tue, 12 May 2009 16:39:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/#comment-476785</guid>
		<description>I added some additional code to email all editors (in my case all users with a user-level 7 and above) when there is a post pending.  Hope this helps.

&lt;code&gt;

&lt;?php
/*
Plugin Name: Draft Notification
Plugin URI: http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/
Description: Sends an email to the site admin when a draft is saved.
Author: Dagon Design
Version: 1.21
Author URI: http://www.dagondesign.com
*/


function dddn_process($id) {

	global $wpdb;
	
	$tp = $wpdb-&gt;prefix;

	$result = $wpdb-&gt;get_row(&quot;
		SELECT post_status, post_title, user_login, user_nicename, display_name 
		FROM {$tp}posts, {$tp}users 
		WHERE {$tp}posts.post_author = {$tp}users.ID 
		AND {$tp}posts.ID = &#039;$id&#039;
	&quot;);

	

	if ($result-&gt;post_status == &quot;pending&quot;) {

		$message = &quot;&quot;;
		$message .= &quot;A draft was updated on &#039;&quot; . get_bloginfo(&#039;name&#039;) . &quot;&#039;\n\n&quot;;
		$message .= &quot;Title: &quot; . $result-&gt;post_title . &quot;\n\n&quot;;

			// *** Choose one of the following options to show the author&#039;s name
	
		$message .= &quot;Author: &quot; . $result-&gt;display_name . &quot;\n\n&quot;;
		// $message .= &quot;Author: &quot; . $result-&gt;user_nicename . &quot;\n\n&quot;;
		// $message .= &quot;Author: &quot; . $result-&gt;user_login . &quot;\n\n&quot;;

		$message .= &quot;Link: &quot; . get_permalink($id);

		$subject = &quot;Draft Updated on &#039;&quot; . get_bloginfo(&#039;name&#039;) . &quot;&#039;&quot;;

		$editors = $wpdb-&gt;get_results(&quot;SELECT user_id FROM {$tp}usermeta WHERE {$tp}usermeta.meta_value &gt;= 7&quot;);
		
		$recipient = &quot;&quot;;
	
			foreach ($editors as $editor) {			

				$user_info = get_userdata($editor);
				$recipient .= $user_info-&gt;user_email . &#039;,&#039;;
			}

		mail($recipient, $subject, $message);

	}

}


add_action(&#039;save_post&#039;, &#039;dddn_process&#039;);

?&gt;

&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>I added some additional code to email all editors (in my case all users with a user-level 7 and above) when there is a post pending.  Hope this helps.</p>
<p><pre><code>

&lt;?php
/*
Plugin Name: Draft Notification
Plugin URI: http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/
Description: Sends an email to the site admin when a draft is saved.
Author: Dagon Design
Version: 1.21
Author URI: http://www.dagondesign.com
*/


function dddn_process($id) {

	global $wpdb;
	
	$tp = $wpdb-&gt;prefix;

	$result = $wpdb-&gt;get_row("
		SELECT post_status, post_title, user_login, user_nicename, display_name 
		FROM {$tp}posts, {$tp}users 
		WHERE {$tp}posts.post_author = {$tp}users.ID 
		AND {$tp}posts.ID = '$id'
	");

	

	if ($result-&gt;post_status == "pending") {

		$message = "";
		$message .= "A draft was updated on '" . get_bloginfo('name') . "'\n\n";
		$message .= "Title: " . $result-&gt;post_title . "\n\n";

			// *** Choose one of the following options to show the author's name
	
		$message .= "Author: " . $result-&gt;display_name . "\n\n";
		// $message .= "Author: " . $result-&gt;user_nicename . "\n\n";
		// $message .= "Author: " . $result-&gt;user_login . "\n\n";

		$message .= "Link: " . get_permalink($id);

		$subject = "Draft Updated on '" . get_bloginfo('name') . "'";

		$editors = $wpdb-&gt;get_results("SELECT user_id FROM {$tp}usermeta WHERE {$tp}usermeta.meta_value &gt;= 7");
		
		$recipient = "";
	
			foreach ($editors as $editor) {			

				$user_info = get_userdata($editor);
				$recipient .= $user_info-&gt;user_email . ',';
			}

		mail($recipient, $subject, $message);

	}

}


add_action('save_post', 'dddn_process');

?&gt;

</code></pre></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Layton</title>
		<link>http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/comment-page-1/#comment-472876</link>
		<dc:creator>Rob Layton</dc:creator>
		<pubDate>Mon, 23 Mar 2009 18:50:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/#comment-472876</guid>
		<description>If anyone is having problems with not receiving emails from Wordpress, there is a solution here: http://www.roblayton.net/archive/wordpress-not-sending-emails-anymore-solved/

Good luck!</description>
		<content:encoded><![CDATA[<p>If anyone is having problems with not receiving emails from Wordpress, there is a solution here: <a href="http://www.roblayton.net/archive/wordpress-not-sending-emails-anymore-solved/" rel="nofollow">http://www.roblayton.net/archive/wordpress-not-sending-emails-anymore-solved/</a></p>
<p>Good luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Admin</title>
		<link>http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/comment-page-1/#comment-469440</link>
		<dc:creator>Admin</dc:creator>
		<pubDate>Wed, 18 Feb 2009 04:05:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/#comment-469440</guid>
		<description>This plugin has been tested, and works in the latest WordPress release (2.7.1).

The only current issue is that an email is sent every time the draft is auto-saved. While the auto-save feature of WordPress can be turned off, I plan to come up with a solution to this.</description>
		<content:encoded><![CDATA[<p>This plugin has been tested, and works in the latest WordPress release (2.7.1).</p>
<p>The only current issue is that an email is sent every time the draft is auto-saved. While the auto-save feature of WordPress can be turned off, I plan to come up with a solution to this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/comment-page-1/#comment-464434</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Fri, 12 Dec 2008 08:46:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/#comment-464434</guid>
		<description>Will you be updating this plugin for use with Wordpress 2.7?</description>
		<content:encoded><![CDATA[<p>Will you be updating this plugin for use with Wordpress 2.7?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Admin</title>
		<link>http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/comment-page-1/#comment-456960</link>
		<dc:creator>Admin</dc:creator>
		<pubDate>Wed, 17 Sep 2008 00:26:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/#comment-456960</guid>
		<description>There is currently an issue with this plugin when the auto-save feature of new versions of WP is enabled. Everytime WP automatically safes the drafts, an email is sent. It will be looked into soon.</description>
		<content:encoded><![CDATA[<p>There is currently an issue with this plugin when the auto-save feature of new versions of WP is enabled. Everytime WP automatically safes the drafts, an email is sent. It will be looked into soon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/comment-page-1/#comment-377368</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Mon, 30 Jun 2008 17:27:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/#comment-377368</guid>
		<description>The method for sending to authors didn&#039;t work for me, so I changed the code to the following using get_userdata, which worked:

&lt;code&gt;

function dddn_process($id) {

	global $wpdb;
	
	$tp = $wpdb-&gt;prefix;

	$result = $wpdb-&gt;get_row(&quot;
		SELECT post_status, post_author, post_title, user_login, user_nicename, display_name 
		FROM {$tp}posts, {$tp}users 
		WHERE {$tp}posts.post_author = {$tp}users.ID 
		AND {$tp}posts.ID = &#039;$id&#039;
	&quot;);


	if ($result-&gt;post_status == &quot;pending&quot;) {

		$message = &quot;&quot;;
		$message .= &quot;Thanks for your post. \n\n&quot;;
		$message .= &quot;Title: &quot; . $result-&gt;post_title . &quot;\n\n&quot;;

		$message .= &quot;Message body .&quot;;

		$message .= &quot;Many thanks&quot;;

		$subject = &quot;Subject&quot;;

                $user_info = get_userdata($result-&gt;post_author);

		$recipient = $user_info-&gt;user_email;

		mail($recipient, $subject, $message);

	}

}


add_action(&#039;save_post&#039;, &#039;dddn_process&#039;);

?&gt;

&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>The method for sending to authors didn&#8217;t work for me, so I changed the code to the following using get_userdata, which worked:</p>
<p><pre><code>

function dddn_process($id) {

	global $wpdb;
	
	$tp = $wpdb-&gt;prefix;

	$result = $wpdb-&gt;get_row("
		SELECT post_status, post_author, post_title, user_login, user_nicename, display_name 
		FROM {$tp}posts, {$tp}users 
		WHERE {$tp}posts.post_author = {$tp}users.ID 
		AND {$tp}posts.ID = '$id'
	");


	if ($result-&gt;post_status == "pending") {

		$message = "";
		$message .= "Thanks for your post. \n\n";
		$message .= "Title: " . $result-&gt;post_title . "\n\n";

		$message .= "Message body .";

		$message .= "Many thanks";

		$subject = "Subject";

                $user_info = get_userdata($result-&gt;post_author);

		$recipient = $user_info-&gt;user_email;

		mail($recipient, $subject, $message);

	}

}


add_action('save_post', 'dddn_process');

?&gt;

</code></pre></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pat</title>
		<link>http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/comment-page-1/#comment-276137</link>
		<dc:creator>Pat</dc:creator>
		<pubDate>Mon, 28 Apr 2008 06:57:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/#comment-276137</guid>
		<description>thank! it works now. i tried to inform the author /and/ the admin this wat:

		$admin = get_bloginfo(&#039;admin_email&#039;);
		$poster = get_the_author_email();

		mail($admin, $subject, $message);
		mail($poster, $subject, $message);

but i end up with both emails going to the admin - do you see the problem?

PAT</description>
		<content:encoded><![CDATA[<p>thank! it works now. i tried to inform the author /and/ the admin this wat:</p>
<p>		$admin = get_bloginfo(&#8217;admin_email&#8217;);<br />
		$poster = get_the_author_email();</p>
<p>		mail($admin, $subject, $message);<br />
		mail($poster, $subject, $message);</p>
<p>but i end up with both emails going to the admin &#8211; do you see the problem?</p>
<p>PAT</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Admin</title>
		<link>http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/comment-page-1/#comment-265657</link>
		<dc:creator>Admin</dc:creator>
		<pubDate>Tue, 22 Apr 2008 00:02:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/#comment-265657</guid>
		<description>&lt;b&gt;Pat&lt;/b&gt;: I am still planning to check all the plugins for compatibility :) I know most of them work with no problems (Sitemap generator, Contact form), but there are a couple others I am going to fix when I get a chance.</description>
		<content:encoded><![CDATA[<p><b>Pat</b>: I am still planning to check all the plugins for compatibility <img src='http://www.dagondesign.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I know most of them work with no problems (Sitemap generator, Contact form), but there are a couple others I am going to fix when I get a chance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pat</title>
		<link>http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/comment-page-1/#comment-265030</link>
		<dc:creator>Pat</dc:creator>
		<pubDate>Mon, 21 Apr 2008 11:02:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/#comment-265030</guid>
		<description>hi, could you make it compatible with vesion wordpress 2.5? it seems the db structure canged and the query is not working anymore..</description>
		<content:encoded><![CDATA[<p>hi, could you make it compatible with vesion wordpress 2.5? it seems the db structure canged and the query is not working anymore..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Uwe</title>
		<link>http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/comment-page-1/#comment-89299</link>
		<dc:creator>Uwe</dc:creator>
		<pubDate>Fri, 12 Oct 2007 08:58:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/#comment-89299</guid>
		<description>Hello,

I want use your plugin for my blog but I don&#039;t get the recipient bis the function

$recipient = get_the_author_email();

I checked it to input the recipient into the message, but this part is empty. I don&#039;t get the author email.

I hope, you can help me.

Thanks a lot
Uwe from germany</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I want use your plugin for my blog but I don&#8217;t get the recipient bis the function</p>
<p>$recipient = get_the_author_email();</p>
<p>I checked it to input the recipient into the message, but this part is empty. I don&#8217;t get the author email.</p>
<p>I hope, you can help me.</p>
<p>Thanks a lot<br />
Uwe from germany</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: josh</title>
		<link>http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/comment-page-1/#comment-86772</link>
		<dc:creator>josh</dc:creator>
		<pubDate>Wed, 03 Oct 2007 16:15:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/#comment-86772</guid>
		<description>Great plugin!!  Thanks for making it available. 

In case anyone else wants to be notified upon &quot;Pending Review&quot; instead of Draft (with the introduction of Pending Review in 2.3), it&#039;s easy to do.  Just change the line that says:

if ($result-&gt;post_status == &quot;draft&quot;)

to


if ($result-&gt;post_status == &quot;pending&quot;)

and it seems to work great.

-Josh</description>
		<content:encoded><![CDATA[<p>Great plugin!!  Thanks for making it available. </p>
<p>In case anyone else wants to be notified upon &#8220;Pending Review&#8221; instead of Draft (with the introduction of Pending Review in 2.3), it&#8217;s easy to do.  Just change the line that says:</p>
<p>if ($result-&gt;post_status == &#8220;draft&#8221;)</p>
<p>to</p>
<p>if ($result-&gt;post_status == &#8220;pending&#8221;)</p>
<p>and it seems to work great.</p>
<p>-Josh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mifouane</title>
		<link>http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/comment-page-1/#comment-82638</link>
		<dc:creator>mifouane</dc:creator>
		<pubDate>Tue, 18 Sep 2007 18:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/draft-notification-plugin-for-wordpress/#comment-82638</guid>
		<description>Works now.  The USERS table prefix was different in my DB.</description>
		<content:encoded><![CDATA[<p>Works now.  The USERS table prefix was different in my DB.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
