[wp-hackers] hooks & future posts

Austin Matzko if.website at gmail.com
Sat Sep 19 16:12:04 UTC 2009

On Sat, Sep 19, 2009 at 11:06 AM, Ozh <ozh at planetozh.com> wrote:
> Then I schedule a post, refresh the blog home page like mad till the
> scheduled post is supposed to show, and instead of the expected ugly
> var_dump() & die(), the scheduled blog post just appears as a new post
> and function do_stuff() has been bypassed.
> What am I not getting with future posts ? :)

WP triggers the cron by making a separate request to itself, so you
won't see the response (see spawn_cron() in wp-includes/cron.php).

> (or: how can I catch it when a post goes from 'future' to 'publish')

Write to a file?

More information about the wp-hackers mailing list