08-03-2018, 12:09 PM
You would probably want to write a cron job to do this, and you would just write code that checks the users subscription, and if no longer valid, change to free and remove a permission level and add a different one. You can see examples of adding and removing permission levels on admin_user.php.