Lock Child Entries by Date
🧪
When editing a parent entry via Entry Blocks or GravityView, this snippet will allow you to prevent child entries from being edited (or deleted) after a given date.
This snippet leaves much to be desired in regards to UX as users will still be able to click on the “Edit” and “Delete” buttons. Clicking “Edit” will load the modal with a no access message. Clicking “Delete” will do nothing.
Instructions
See “Where do I put snippets?” in our documentation for installation instructions.
Code
Filename: gpnf-lock-child-entries-by-date.php