Skip Navigation

[Resolved] Change custom field value on a specific time and date

This thread is resolved. Here is a description of the problem and solution.

Problem:
Setup the post expiration time.

Solution:
This is built-in feature of CRED:
Automatic post expiration in CRED forms

Relevant Documentation:
https://toolset.com/documentation/user-guides/automatic-post-expiration/
in section "Post Expiration settings in the WordPress post editor", there you can setup the post status to what you want.

This support ticket is created 7 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by gaborG 7 years, 6 months ago.

Assigned support staff: Luo Yang.

Author
Posts
#376889

Is it possible to set a custom field's value to expire after a certain time?
I would like to offer featured ad options on my classified ads site, and I want these to expire after a while. So I would change the value when the person submits a payment for this option, and I would like it to automatically change back after the period is over.
Can this be done?
Thanks.

#377049

Dear gabor,

There is a build-in feature within CRED, see our document:
Automatic post expiration in CRED forms
https://toolset.com/documentation/user-guides/automatic-post-expiration/
in section "Post Expiration settings in the WordPress post editor", there you can setup the post status to what you want.

And you can use CRED action hook "cred_post_expiration_custom_actions" to setup the custom fields to what you want.

#377347

Thank you.