Ban/block users who haven't logged in for 1 year or more
complete
Amrayu78
marked this post as
complete
Amrayu78
Max Romanchenko Task for you whenever you get the chance after migration.
Max Romanchenko
Amrayu78
Thanks for the task. I checked and there are 4177 such subscribers.
Do you need a list of these users after changing their roles?
Amrayu78
Max Romanchenko: Can we move these users to a new role? "Inactive"
- It's like banned, but the role is just "inactive"
I want to keep those that are banned separate from inactive.
I don't need an export of these users.
I think if you move them to "Inactive" that's good enough.
Max Romanchenko
Amrayu78
Sure, all done - users have been moved to the new "Inactive" role.
I also applied the same restrictions to the new role as for "Banned".
Let me know if you need anything else.
Amrayu78
Max Romanchenko This is good. I'd like to run this process once or twice a year to clean up accounts. Hopefully that's okay with you.
Max Romanchenko
Amrayu78 That sounds good! For this purpose, I think the best approach is to create a dedicated admin page where you can review and process inactive subscribers manually once or twice a year.
I have created a new admin page (which does not create unnecessary overhead on the site) located under Users > Inactive Subscribers in WP admin. It allows you to:
- Filter users by inactivity period (3-24 months)
- Review the list before taking action
- Bulk change roles with one click
- See exactly how many users will be affected before proceeding
Please check it out and let me know if you would like any adjustments.
Amrayu78
Max Romanchenko This looks great! Thanks for implementing. I will close out the ticket then.