How to toggle post status from front-end?
I’m trying to figure out a way to toggle post status (from publish to draft and backwards). But I’m trying to achieve that from the theme’s front-end.
The basic idea, I think, is to take a simple href structure and pass the action as a param in the URL.
Of course, this has to be accessible to admin user (or at least users with suitable roles).
- The topic ‘How to toggle post status from front-end?’ is closed to new replies.