How To: Automatically Delete a Group Clone After an Expiration Date?

Support MB Conditional Logic How To: Automatically Delete a Group Clone After an Expiration Date?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #42560
    Michael KernMichael Kern
    Participant

    Hey all, I'm working on a site for a therapy practice. Therapists must renew their licenses annually. If they do not, the license expires and they can no longer practice under that license. I want to make metabox absolutely delete a group clone named license when it hits the date set in another custom field within that group. Is that possible?

    #42568
    PeterPeter
    Moderator

    Hello,

    I think it is possible. You can use the WordPress function delete_post_meta() to delete a field value.

    Or get the field value, put it into a loop and delete the last element of the cloneable and re-update the field value with update_post_meta().

    It would need some custom code to do and beyond our scope of support. If you are not able to complete the task, please contact us here https://metabox.io/contact/, our development team will help you with some extra fee.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.