News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SitePoint.com:
Scheduling Tasks in WordPress a Plugin Developer's Guide
July 21, 2010 @ 09:45:17

On SitePoint.com there's a new tutorial posted in their "PHP & MySQL tutorials" section about using a feature of WordPress that some might not know about but can be extremely handy when you need it - using WordPress tasks.

Scheduling the execution of certain functions at a time in the future is a key feature of the WordPress API, having been introduced in WordPress version 2.0. It's also a topic that's poorly understood by many developers, as it's only briefly covered in WordPress's documentation. Apart from facilitating maintenance tasks, scheduling code to be executed in the future opens up a lot of interesting possibilities for plugin developers.

He talks a bit about how the WordPress tasks work (via the wp-cron.php script) and the two types of tasks - one-off and recurring. He includes code and examples of how to set up each and some other handy features like custom timing for tasks, getting the list of scheduled tasks and a few things to watch out for when working with the feature.

0 comments voice your opinion now!
wordpress schedule task cron developer tutorial


blog comments powered by Disqus

Similar Posts

Freek Lijten's Blog: OAuth, a practical introduction with examples using the Twitter API

NetTuts.com: Building With the Twitter API: Using Real-Time Streams

Icant.co.uk: How to create thumbnails with PHP and gd

Codewalkers.com: New Things on the Tutorial Front (Pagination & Ajax)

Job Posting: InvestorGuide.com Seeks Web Developer (Fairfax, VA)


Community Events

Don't see your event here?
Let us know!


symfony2 community php7 conference framework laravel install voicesoftheelephpant opinion series version release library example interview introduction podcast performance extension api

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework