filters – How to replace username with email address in users table


I have a custom built site that does not use usernames and everything requires use of their email address. The username is auto generated and looks bad in the table.

I know there are filters and actions to work with custom columns within the users table but I have been looking for a way to replace the username with the email address.

I know I can unset the username using manage_users_columns filter but I then loose the row actions.

Is there a way to accomplish this without rewriting wordpress core functions?

james 2 years 2022-06-01T22:00:33-05:00 0 Answers 0 views 0

Leave an answer