Skip to:
Content
Pages
Categories
Search
Top
Bottom

Automatically close or delete groups

  • @eisenwasser

    Participant

    I would like to be able to have all groups on my site be automatically deleted or at least set to private after 30 days. Does anyone out there know how to do this? Help is appreciated!

Viewing 1 replies (of 1 total)
  • @cnorris23

    Participant

    You could use wp_cron to fire a function that checks a group’s creation date, it if it meets your 30 day requirement, you would then call the groups_delete_group() function or groups_edit_group_settings() to change the status.

Viewing 1 replies (of 1 total)
  • The topic ‘Automatically close or delete groups’ is closed to new replies.
Skip to toolbar