Leave a Reply

1 comment

  1. Hi @epaps:

    So I tested your code and it all works fine. The $post is passed in as an object and you have full access to the $post->ID variable. Best I can tell is that you have some kind of plugin interaction that is causing it to fail or that, for some reason the scheduled task is not being called (but if the future post is indeed being published then the latter potential does not seem possible.)

    Hmm, without your full code to debug I’m stumped. If you come up with me information maybe I can help you find it.

    P.S. Here was my first answer which was clearly wrong: Could it be that you meant to use the 'publish_future_post' hook instead of 'future_to_publish'?