Thanks again for the update and linking the draft feature request.
I took a look at the âAdd a save as draft and publish buttonâ thread (from early 2023), and while itâs good to know itâs confirmed on the roadmap, I can see why some of these UX improvements take time with the pluginâs custom flow.
Since Iâm running six HivePress sites (ideally 17 or 18 in the future if I can get sales and traction going) â with 10 active Code Snippets already handling various gaps on each site â I asked Grok (an AI tool on X) if a custom Code Snippet could add âSave Draftâ functionality in the meantime.
The feedback is that itâs more involved than a simple tweak because HivePress uses a custom submission process (AJAX forms, REST API endpoints, model validation for hp_listing posts) with extra metadata (attributes, images, location, etc.).
From what Grok pulled from docs and forum patterns, a full implementation might need:
- Filters on hivepress/v1/forms/listing_submit or hivepress/v1/models/listing to handle draft logic.
- A custom button in the form (via template override or JS).
- An AJAX handler to save partial data as âdraftâ status without triggering full publish/validation.
It sounds doable (50â150 lines of PHP), but the risk is stabilityâsnippets like this could break on HivePress updates if they change the form/AJAX/model flow. (Current partial auto-draft exists for new listings on some steps, but expires quickly.)
I was going to experiment with a snippet myself to see if it could work reliably and share a rough version here for anyone else waiting, but after a recent update to a new HivePress theme, Iâm pretty sure future updates would likely break custom code if itâs not handled at the plugin or theme level. So Iâll probably hold off rather than invest time in something fragile.
In the meantime, Iâll vote on both this and the reply-without-login feature to help prioritize them.
If anyone has tried a similar workaround or has partial code (e.g., for basic AJAX save), Iâd love to see it.
Iâm not a developer, but Iâve turned into a âpseudo oneâ since taking on this large-scale projectâespecially since I have a multi-tier affiliate program tied into all of my sites as well â lol.
Thanks for the ongoing transparency!