• Can someone help me confirm that the publish_future_post hook is not working in the latest version of WordPress.

    The reference page says this hook should be executed “when a future post or page is published.” When I have schedule a post and it switches to the published status this action does not seem to be executed.

    I have switched to the default theme and have disabled all plugins.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • I would like to know the same thing. the future_to_publish hook isn’t working for me either the way I would expect.

    Thread Starter jkoon

    (@jkoon)

    I was trying to use global $post in the function which turns out to not be correct. Try using this code:

    function test_action ( $post_id ) {
    	update_post_meta( $post_id, 'hook_fired', 'true' );
    }

    Here is a link to my closed bug report for more information: https://core.trac.www.ads-software.com/ticket/23700#comment:1

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Confirm that publish_future_post hook does not work?’ is closed to new replies.