Skip Navigation

[Resolved] Which post expiration date is enforced when two forms are used to update a post?

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 himanshuS 1 month ago.

Author
Posts
#2171557

I have a custom post named 'Jobs'.

These post types are created using Form A. This form has the condition to expire the post in 30 days and change status to private.

The user is also allowed to close the post manually with form B. This makes the post private. Form B does not have any expiration condition.

After closing the post, the user is allowed to re-open the post with Form C. This form has a condition to expire the post in 30 days and change status to private.

My question is - will the expiration date be enforced from Form A or Form C if the user users all three forms.

#2171669

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

The post expiration date is stored as a (hidden) custom field on the published post, set by the form at the time the form is submitted.

There is only a single version of the expiration date field, and so whichever form is submitted last will be the one whose expiration date is applied.

In your scenario it looks like the date from Form C would be applicable.

#2171673

My issue is resolved now. Thank you!