Support » Networking WordPress » How to autoclose user accounts after 24 hours

  • Hello,

    How might I be able to allow users to create a site on a multisite subdirectory, then autoclose these accounts after a pre-determined amount of time?

    Thanks for the help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • What do you mean by ‘close’ the accounts? You want to lock them out from ever being able to access their blogs after 24 hours? Or are you looking to have the browser session & cookie removed after 24 hours?

    Better yet, why do you want to do this?

    It’s for testing purposes, it doesn’t have to be 24 hours but I don’t want to overload the server so maybe somehow deleting them after a certain amount of inactivity would be better.

    ( I just don’t want the number of users to be insanely high because of temporary accounts )

    Oh, ok. What you’re looking for is to remove inactive accounts. I wouldn’t suggest removing users since a user might have more than one blog on your network.

    The only thing I could find was this script: (which supercedes this one:, but it’s incomplete, old and buggy, so I don’t suggest actually using it. You can, however, use it as a reference point for writing your own script.

    I’ll give it a crack, thanks for the resource

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to autoclose user accounts after 24 hours’ is closed to new replies.