I’m working with the API to manage listings and have successfully updated basic fields like the title and description. However, I’m stuck trying to update the following attributes:
Verified (Checkbox)
Featured (Checkbox)
Featuring Date
Expiration Date
I’ve read through the API documentation, but it’s not clear how to handle these specific fields. Has anyone run into this before or knows the correct way to update them?
Any guidance or example would be super helpful — thanks in advance!
Verified means that the admin checked some of the credentials provided by the user, whatever they are, depending on your business case.
Featured means you are promoting this listing (just like Google Ads) Featuring date specifies for how long this listing will be promoted (could be two weeks or 3 months).
Expiration date specifies for how long the listing will be visible.
Please note that if you use paid listings plugin, the duration you set in your packages will take precedence over the one defined in default HivePress settings.
If you use WP REST API, then the mentioned fields are stored as post meta fields of hp_verified, hp_featured (set to 1 or empty value), hp_featured_time, hp_expired_time (set to timestamp or empty value).