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 6 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.

This topic contains 2 replies, has 2 voices.

Last updated by gaborG 6 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

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

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.