erase_others_personal_data

What is the erase_others_personal_data permission in WordPress? #

The erase_others_personal_data permission controls access to a menu link inside WordPress:

  • Tools > Erase Personal Data:

Users with the erase_others_personal_data will be able to see the “Erase Personal Data” screen. This screen allows you to delete a user's personal data. The eleted data is permanently removed from the database.

Note: the erase_others_personal_data permission can not work by itself. The user will also need the manage_options permission and the delete_users permission.


Who has the erase_others_personal_data permission? #

By default, the erase_others_personal_data permission is only given to Super Admins and Administrators.

Users not in these roles are not allowed to erase users' personal data.


How can you control who has the erase_others_personal_data permission? #

The erase_others_personal_data permission is not active by default on WordPress sites. You will need to enable the permission before assigning it to user roles.

You can control who has the erase_others_personal_data permission by installing the PublishPress Capabilities plugin.

  • After installing PublishPress Capabilities, go to “Capabilities” in your admin menu.
  • Using the dropdown in the top-left corner, choose the role you want to edit.
  • In the “Add Capability” box, enter erase_others_personal_data.
  • Click “Add to role”.
  • Click the “Additional” tab.
  • Check or uncheck the “erase others personal data” box.

All the privacy permissions in WordPress #