benhuson / expire-users

Set expiry dates for users in WordPress
http://wordpress.org/plugins/expire-users/
24 stars 16 forks source link

Remove expire date #43

Open Colir opened 8 years ago

Colir commented 8 years ago

Hi. i'm trying to remove the expire date on user by php (like setting "none" in the setting of a user)

for do this i rite something like this 👍 $expireUser = new Expire_User( $user->user_id); $expireUser->remove_expiry(); $expireUser->save_user();

but when the date is reach, the user keep the date in red... how i can do this ? thanks.

and thanks for you work on this plugin

benhuson commented 4 years ago

Think we might need a method to clear_expiry() which also removes the _expire_user_expired value.

remove_expiry() just removes the expiry data but still keeps the user flagged as expired.