I am writing a plugin, part of the functionality does functions on hook: publish_to_draft
I then later want to re-publish that post and trigger specific functionality to see if it has previously been published.
i.e. draft_to_publish
Now whilst I already have functionality for this, what I can't tell is the difference between a post that is just a draft going to publish or a previously published post that has been moved back to draft.
This is important because it is used for integration and I need to run that functionality on that action.
Can I use the_date() for this?
Cheers Dan