In WordPress with the publish_post_type you can hook into the loop if a post with custom type is published. But publish_post_type is also triggers if a a post is updated.
I am basically looking for a way to check the old and new status, within the "publish_post_type" hook. Does anyone have a nifty idea as to how to accomplish that? :)
Aucun commentaire:
Enregistrer un commentaire