Banner image for Only Include Admins in the WordPress User Delete Dropdown

When managing a large scale WordPress membership site, you might find yourself unable to perform certain actions due to the sheer number of users in your database.

One scenario is the user delete process—in which core WordPress allows you to assign the deleted user’s content to another user in the site.

This tutorial includes a simple code recipe to modify the “attribute content” dropdown to only include users with the administrators role. Only including admins ensures that content is reassigned to a user with the appropriate level of access and responsibility, and that your delete user process doesn’t choke on a large user list.

This content requires a premium membership plan.