Detect type of post status transition
I have a function on my site that it supposed to run when a new post is published (email push notification), with the exception of the same article updated (i.e publish_to_publish transition, I don’t want to send unnecessary push notifications) I know that I can use the {old_status} to {new_status} action hooks, but this means … Read more