Support » Plugins and Hacks » Hacks » Publish scheduled/future posts in 3.5

  • Resolved THE MOLITOR


    Hi there,

    I’m using the following code in my functions.php file that sets posts with a future publish date to the “published” status (instead of “scheduled”).

    Everything worked perfect until updating to WordPress 3.5. Does anybody know why?…

    function setup_future_hook() {
     // Replace native future_post function with replacement
     remove_action('future_post', '_future_post_hook');
     add_action('future_post', 'publish_future_post_now');
    function publish_future_post_now($id) {
     // Set new post's post_status to "publish" rather than "future."
    add_action('init', 'setup_future_hook');
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Publish scheduled/future posts in 3.5’ is closed to new replies.