snippet-library
snippet-library copied to clipboard
`gw-disable-expired-forms.php`: Added snippet to disable expired forms.
trafficstars
Context
⛑️ Ticket(s): https://secure.helpscout.net/conversation/2696916682/70897
Summary
A snippet that checks on load if the scheduled end date is beyond a given range and if so, updates the form status to "inactive". This checks all forms globally on load but only apply if a form schedule end date is set and that date is beyond a threshold value.
Snippet Demo: https://www.loom.com/share/e2eff9a9b4744f1eb9fc8e1f2e8fd1cb