publish_post action hook with a scheduled post (3 posts)

  1. thenameisnick
    Posted 6 years ago #

    I'm not really sure if the problem is on my end or not, but should the publish_post action hook work the same with a scheduled post as it does with a post that is published immediately?

  2. ddeconin
    Posted 6 years ago #

    From my experience, pusblish_post fires on a scheduled post when the schedule passes, not when you hit the publish button.

  3. Arpit
    Posted 6 years ago #

    I also had issue with my plugin Twitter Goodies.

    I figure out that issue by putting 2 different conditions. Please check out here: http://arpitshah.com/publish_post-how-to-check-if-wp-post-is-newly-published-or-edited/

    I hope it will help you.

Topic Closed

This topic has been closed to new replies.

About this Topic