<?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: Use WordPress Cron</title>
	<atom:link href="http://wpengineer.com/1908/use-wordpress-cron/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpengineer.com/1908/use-wordpress-cron/</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: How to Get Your Twitter Follower Number in Plain Text &#124; WordPress Toolbag</title>
		<link>http://wpengineer.com/1908/use-wordpress-cron/#comment-5168</link>
		<dc:creator>How to Get Your Twitter Follower Number in Plain Text &#124; WordPress Toolbag</dc:creator>
		<pubDate>Tue, 16 Nov 2010 19:09:26 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1908#comment-5168</guid>
		<description>[...] If you&#8217;d like to learn more about scheduling events with WordPress, take a look at WP Engineer&#8217;s tutorial. [...]</description>
		<content:encoded><![CDATA[<p>[...] If you&#8217;d like to learn more about scheduling events with WordPress, take a look at WP Engineer&#8217;s tutorial. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to Get Your Twitter Follower Number in Plain Text &#124; Pro Blog Design</title>
		<link>http://wpengineer.com/1908/use-wordpress-cron/#comment-5074</link>
		<dc:creator>How to Get Your Twitter Follower Number in Plain Text &#124; Pro Blog Design</dc:creator>
		<pubDate>Mon, 25 Oct 2010 16:02:12 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1908#comment-5074</guid>
		<description>[...] If you&#8217;d like to learn more about scheduling events with WordPress, take a look at WP Engineer&#8217;s tutorial. [...]</description>
		<content:encoded><![CDATA[<p>[...] If you&#8217;d like to learn more about scheduling events with WordPress, take a look at WP Engineer&#8217;s tutorial. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: add custom time to wp cron &#124; Depozit</title>
		<link>http://wpengineer.com/1908/use-wordpress-cron/#comment-4331</link>
		<dc:creator>add custom time to wp cron &#124; Depozit</dc:creator>
		<pubDate>Mon, 17 May 2010 13:57:06 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1908#comment-4331</guid>
		<description>[...] http://wpengineer.com/use-wordpress-cron/ The filter accepts an array of arrays. The outer array has a key that is the name of the schedule or for example &#8216;weekly&#8217;. The value is an array with two keys, one is &#8216;interval&#8217; and the other is &#8216;display&#8217;. [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://wpengineer.com/use-wordpress-cron/" rel="nofollow">http://wpengineer.com/use-wordpress-cron/</a> The filter accepts an array of arrays. The outer array has a key that is the name of the schedule or for example &#8216;weekly&#8217;. The value is an array with two keys, one is &#8216;interval&#8217; and the other is &#8216;display&#8217;. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Cowgill</title>
		<link>http://wpengineer.com/1908/use-wordpress-cron/#comment-3743</link>
		<dc:creator>David Cowgill</dc:creator>
		<pubDate>Wed, 17 Mar 2010 22:02:53 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1908#comment-3743</guid>
		<description>I can&#039;t seem to get the function to trigger even though the hook seems to be registered. 

Another tip so you can see the next scheduled date/time is to print out your hook via the wp_next_scheduled function. This is great for troubleshooting. WP seems to use GMT and my offset is -7 so once I printed out the actual date, I saw that the scheduler wasn&#039;t going to fire for another 7 hours.
&lt;code&gt;echo date(&quot;d-M-Y h:i:s A&quot;, wp_next_scheduled(my_task_hook));&lt;/code&gt;

Also I think you have a mistake in your code above:
&lt;code&gt;delete_action( &#039;my_task_hook&#039;, &#039;my_task_deactivate&#039; );&lt;/code&gt;
should be
&lt;code&gt;remove_action( &#039;my_task_hook&#039;, &#039;my_task_deactivate&#039; );&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>I can't seem to get the function to trigger even though the hook seems to be registered. </p>
<p>Another tip so you can see the next scheduled date/time is to print out your hook via the wp_next_scheduled function. This is great for troubleshooting. WP seems to use GMT and my offset is -7 so once I printed out the actual date, I saw that the scheduler wasn't going to fire for another 7 hours.<br />
<code>echo date("d-M-Y h:i:s A", wp_next_scheduled(my_task_hook));</code></p>
<p>Also I think you have a mistake in your code above:<br />
<code>delete_action( 'my_task_hook', 'my_task_deactivate' );</code><br />
should be<br />
<code>remove_action( 'my_task_hook', 'my_task_deactivate' );</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shawn</title>
		<link>http://wpengineer.com/1908/use-wordpress-cron/#comment-3229</link>
		<dc:creator>shawn</dc:creator>
		<pubDate>Fri, 08 Jan 2010 15:25:10 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1908#comment-3229</guid>
		<description>I can get it to send me sms and email every hour but no matter what I do, the function filter_cron_schedules doesn&#039;t seem to be firing. I don&#039;t want to use the 3 standard time keys. I&#039;d like to customize the seconds as needed. What is the syntax in the wp_schedule_event to get the filter to be called? Thanks!</description>
		<content:encoded><![CDATA[<p>I can get it to send me sms and email every hour but no matter what I do, the function filter_cron_schedules doesn't seem to be firing. I don't want to use the 3 standard time keys. I'd like to customize the seconds as needed. What is the syntax in the wp_schedule_event to get the filter to be called? Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guillaume</title>
		<link>http://wpengineer.com/1908/use-wordpress-cron/#comment-3040</link>
		<dc:creator>Guillaume</dc:creator>
		<pubDate>Fri, 18 Dec 2009 20:02:15 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1908#comment-3040</guid>
		<description>Answered my own question. From the codex:

The action will trigger when someone visits your WordPress site, if the scheduled time has passed. 

This is an important nuance.  In my case, I need to fetch data from an external site every hour. The first visitor after the scheduled time will see the old data. It will trigger the cron, and only then will the new data be available.</description>
		<content:encoded><![CDATA[<p>Answered my own question. From the codex:</p>
<p>The action will trigger when someone visits your WordPress site, if the scheduled time has passed. </p>
<p>This is an important nuance.  In my case, I need to fetch data from an external site every hour. The first visitor after the scheduled time will see the old data. It will trigger the cron, and only then will the new data be available.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matt mcinvale</title>
		<link>http://wpengineer.com/1908/use-wordpress-cron/#comment-3039</link>
		<dc:creator>matt mcinvale</dc:creator>
		<pubDate>Fri, 18 Dec 2009 19:53:52 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1908#comment-3039</guid>
		<description>WP&#039;s cron functionality requires pages to be loaded. You can counteract this by setting a real cronjob on your system to ping the site in question every couple minutes.

*/5 * * * * curl http://somesite.com/</description>
		<content:encoded><![CDATA[<p>WP's cron functionality requires pages to be loaded. You can counteract this by setting a real cronjob on your system to ping the site in question every couple minutes.</p>
<p>*/5 * * * * curl <a href="http://somesite.com/" rel="nofollow">http://somesite.com/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guillaume</title>
		<link>http://wpengineer.com/1908/use-wordpress-cron/#comment-3037</link>
		<dc:creator>Guillaume</dc:creator>
		<pubDate>Fri, 18 Dec 2009 19:42:42 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1908#comment-3037</guid>
		<description>Is it a true cron that will start on its own, or on every page load it checks if some job needs to be run?

Another way to put it:
When you set a cron to run every hour and no one visits your site for 3 days, will it run every hour during that time?</description>
		<content:encoded><![CDATA[<p>Is it a true cron that will start on its own, or on every page load it checks if some job needs to be run?</p>
<p>Another way to put it:<br />
When you set a cron to run every hour and no one visits your site for 3 days, will it run every hour during that time?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Использование Cron в WordPress Wordpress: статьи, плагины, темы</title>
		<link>http://wpengineer.com/1908/use-wordpress-cron/#comment-3004</link>
		<dc:creator>Использование Cron в WordPress Wordpress: статьи, плагины, темы</dc:creator>
		<pubDate>Wed, 16 Dec 2009 07:40:26 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1908#comment-3004</guid>
		<description>[...] мотивам: wpengineer.com  Подписатся на обновления блога:Подписаться по [...]</description>
		<content:encoded><![CDATA[<p>[...] мотивам: wpengineer.com  Подписатся на обновления блога:Подписаться по [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matt mcinvale</title>
		<link>http://wpengineer.com/1908/use-wordpress-cron/#comment-3003</link>
		<dc:creator>matt mcinvale</dc:creator>
		<pubDate>Wed, 16 Dec 2009 00:02:05 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1908#comment-3003</guid>
		<description>exactly what i was looking for. need to automatically post and remove pages from a new project. wasn&#039;t exactly sure how wordpress handled cron. :)</description>
		<content:encoded><![CDATA[<p>exactly what i was looking for. need to automatically post and remove pages from a new project. wasn't exactly sure how wordpress handled cron. <img src='http://wpengineer.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

