Is it possible to use WP Bulk Delete to delete users based on last login date. For example, delete all users of user type X who have not logged in for 365 days or more.
Yes, you can delete users by the last login date, you can delete users by following the details below.
==> Activate this( JSM Show User Metadata ) plugin and get the user’s last login meta key. And check the date format ==> Once done, you can select the user role, ==> Add the user meta key and value. ==> Set limit field ==> Press the “Delete Users” button.
Also, by default WordPress use the “_last_login” this user meta key.
Please get in touch with us here if you have any more questions for quick reply.
I finally got around to looking into this. The last login date looks to be coming from Wordfence. Is there a way we can hook into that to bulk delete users based on last login? i.e. delete all users with last login is 365 days or more?