Title: [Plugin: Expire Users] Automatic expiration
Last modified: August 20, 2016

---

# [Plugin: Expire Users] Automatic expiration

 *  [amoldejong](https://wordpress.org/support/users/amoldejong/)
 * (@amoldejong)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-expire-users-automatic-expiration/)
 * Hello,
 * Would it be possible that upon registration it automatic sets a expiration date,
   for example of two months, counting from registration date?
 * that would make this plugin excellent!
 * [http://wordpress.org/extend/plugins/expire-users/](http://wordpress.org/extend/plugins/expire-users/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Ben Huson](https://wordpress.org/support/users/husobj/)
 * (@husobj)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-expire-users-automatic-expiration/#post-3036702)
 * I have added this to the [issues list](https://github.com/benhuson/expire-users/issues/4)
   as possible functionality to add in a future version.
 *  Thread Starter [amoldejong](https://wordpress.org/support/users/amoldejong/)
 * (@amoldejong)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-expire-users-automatic-expiration/#post-3036721)
 * Hi there,
 * Is there any way i can adjust your plugin so it automatically sets an expire 
   date for newly registered users?
 * I can still find no other solution (plugins) to get this working…
 * regards
 *  Plugin Author [Ben Huson](https://wordpress.org/support/users/husobj/)
 * (@husobj)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-expire-users-automatic-expiration/#post-3036722)
 * If you have a level of PHP knowledge and the WordPress API you may be able to
   do this. The main functionality you would need is in the class-expire-user.php
   file:
 * [http://plugins.svn.wordpress.org/expire-users/trunk/includes/class-expire-user.php](http://plugins.svn.wordpress.org/expire-users/trunk/includes/class-expire-user.php)
 * Basically you’ll need to use the appropriate WordPress API to hook into when 
   a user is created, then create a new Expire_User(), set the appropriate settings
   using the functions in the Expire_User class, then call Expire_User->save_user()
   to save those settings.
 * It is something I plan to add to the plugin at some point but I cannot contribute
   any free time to it at the moment.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Plugin: Expire Users] Automatic expiration’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/expire-users_669999.svg)
 * [Expire Users](https://wordpress.org/plugins/expire-users/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/expire-users/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/expire-users/)
 * [Active Topics](https://wordpress.org/support/plugin/expire-users/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/expire-users/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/expire-users/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Ben Huson](https://wordpress.org/support/users/husobj/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-expire-users-automatic-expiration/#post-3036722)
 * Status: not a support question