[wp-hackers] hooks & future posts

Ozh ozh at planetozh.com
Sat Sep 19 16:06:17 UTC 2009


Peeps,

I have code with:

add_action('future_to_publish', 'do_stuff');
function do_stuff( $post ) {
  var_dump( $post ); die();
}

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 ? :)
(or: how can I catch it when a post goes from 'future' to 'publish')

Ozh
-- 
http://planetOzh.com ~ Blog and WordPress Stuff
http://FrenchFragFactory.net ~ Daily Quake News


More information about the wp-hackers mailing list