Hello HivePress team and community,
I’m building a C2C marketplace using the MeetingHive theme and HivePress v1.7.11. I need every listing to require re-approval whenever it’s edited, so I want to automatically clear the “verified” attribute on each front-end update.
Here’s what I’ve already tried:
- save_post_hp_listing hook
- Confirmed it fires on edit (using alert in wp_footer), but neither
update_post_meta(…, 'verified', '0')
nor taxonomy clears worked.
- Confirmed it fires on edit (using alert in wp_footer), but neither
- post_updated hook
- Fires reliably, but
hivepress()->attribute->save(…, [])
did not remove the attribute.
- Fires reliably, but
- hivepress/v1/models/listing/update filter
- Never fired on listing-update REST/API flow.
- REST API endpoint filters (
hivepress/v1/rest/listings/%d/update
)- No effect—hooks aren’t triggered here.
- Client-side JS hook (
listing:update:success
)- I can detect success but clearing via JS isn’t ideal for data consistency.
- Form moderation (
_moderated
flag on form fields)- Applies only to certain fields and doesn’t reset the verified attribute itself.
Questions:
- Which server-side hook or filter is the correct one to catch every front-end listing update, so I can programmatically clear the “verified” attribute?
- Are there alternative recommended approaches—e.g. custom REST middleware, modifying the listing_update form schema, or another HivePress API—to enforce manual re-approval on edits?
- From a production standpoint (stability, upgrade-safety, multi-server scaling), what method does HivePress recommend for this workflow?
Thank you in advance for any pointers or code samples—my goal is to ensure no listing remains “verified” after an edit until an admin explicitly re-approves it.