I want to change the post status when the user click on preview

Question

I want to change the status of the post from “draft” to “publish” when the user clicks on the preview button, then make a URL call and change the status of the post back to “draft” from “publish”. Can someone help me with which hook to make use of?

0
HIver Ninja 4 months 0 Answers 11 views 0

Leave an answer