Personal Data Retention for inactive accounts deleted authored page content!
-
I figured out a tricky issue that was happening with a site. The homepage and several other pages were being deleted when wp-cron ran.
I believe WooCommerce was using wp-cron scheduled tasks to cleanup inactive/old users with the hook “woocommerce_cleanup_personal_data”. Personal Data Retention was set to Retain Inactive accounts for 1 year. A former site admin user who was still the “author” of many pages was previously demoted to Subscriber role, and consequently was “cleaned up” by this retention policy. The issue was it seems this process was deleting these users without reassigning the ownership of their content, consequently deleting the site homepage and many other pages.
I realize of course the content ownership should have been reassigned when the user was demoted to avoid this.
It would be nice in the future if this woocommerce_cleanup_personal_data process could be updated to check if deleted users own any published content prior to deletion, possibly notifying the admin to change content the ownership, and or assign content to another admin user with a recent login before deletion.
Thanks!
- The topic ‘Personal Data Retention for inactive accounts deleted authored page content!’ is closed to new replies.