Problem:
The customer reported that the code to set the post-expiration date/time through the 'cred_save_data' hook is not working as expected.
Solution:
Tested the customer's code and it worked as expected on a test website.
Guided that when using the custom function to set the expiration date/time, please make sure that the option 'Set expiration date for post created or edited by this form' is unchecked in the form's settings.
If you've set some post-expiration date/time through the form settings, it will override the date/time set by the custom function.
Relevant Documentation:
n/a
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/Karachi (GMT+05:00)
This topic contains 4 replies, has 2 voices.
Last updated by 2 years, 8 months ago.
Assisted by: Waqar.