• Hi All,

    I am writing some integration code that uses XML-RPC incoming and then a flatfile process queue for outgoing data (just post ID’s)

    The code does the following

    – On creating a post, a file is updated with post ID
    – file is picked up by cron and creates forum threads
    – If post is moved from publish to draft, another file it created
    – Cron job then makes forum thread inactive

    What I need to write now, is that when a post is moved from draft to publish, if the post has previously been published, then I want to update the file with another flag.

    Is there any hook or flag within a hook that can check if it has been published before?

    Looking at the $post array that I pass to the function, it doesn’t have a published date, so I can not use this as an indicator

    Dan

  • The topic ‘check if an article has been published before’ is closed to new replies.