Filter dropdown in users.php “delete user” bulk edit screen
One way is by using the load-users.php hook which is fired only on the wp-admin/users.php page, and then use the wp_dropdown_users_args filter to modify the parameters (e.g. the role parameter) passed to wp_dropdown_users(). In addition, we check to make sure that the field name is reassign_user which is what WordPress use in the users.php file. … Read more