Setting post status in JS
-
Is there a way to set the post status using JS?
I have found updatePost but there are no examples of it being used in practice that I can find anywhere, let alone in the official docs.
Basically I want to set the post status to ‘draft’ in JS under certain circumstances. Is this possible?
If more context is needed I can provide it but I’m trying to keep it simple for now 🙂
The topic ‘Setting post status in JS’ is closed to new replies.