Lists expiration in hours instead of days

Hi,
I repropose these topic, because I can’t reply the oldest topic in time.
You have answered:
Hi,

Sorry for the late reply. If you mean to set the time in hours instead of days at the global settings level, then yes, it is possible, but it will require a custom implementation. If you are familiar with coding or have a developer, we can provide general recommendations.

Please you can provide me general recommendation?
Also you can provide me preventive for custom implementation?
Best regards

Hi,

This is where the expiration time is set in the code hivepress/includes/components/class-listing.php at master · hivepress/hivepress · GitHub This function is called when the listing status is switched to Published or Pending. You can try using the same hook hivepress/v1/models/listing/update_status and condition, to call a custom function later than this one and override the expiration time (by using the expiration period multiplied by 24, so the setting will be used as hours and not days).

Hope this helps

Hi, I will try to make the recommended modifications. If you did them, how much would they cost?

Hi,

We do not provide such services. If you need customization, we recommend that you consider hiring experts: Experts | HivePress

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.