It seems that the username column content
is hardcoded in single_row()
of WP_Users_List_Table
and there isn’t a filter you can use to change it.
A hacky way is to enqueue some javascript on the users view and have the script change the content.
Or take the rocky road by duplicating the code that handles the row actions in single_row()
, and replace the default column with a custom one showing the email and the actions.
Or just brute force the email as the username with wp_pre_insert_user_data
filter.
Related Posts:
- How to filter users on admin users page by custom meta field?
- WordPress: Issue with filtering users using date range
- How to bulk delete all users with no posts?
- is it possible to add “extra” table nav to edit-tags.php screens?
- What hook do I use to edit the post statuses option in admin?
- post_mime_types Filter not Working in List Mode
- How can I add information underneath the user’s name on the users.php page?
- How to limit the pages displayed for choosing parent page on page attribute’s menu?
- How may I filter get_users() similarly to pre_get_posts?
- WordPress Rest filter for custom taxonomy gets applied to the admin area
- user_has_cap filter allows edit but will not allow save
- Changing Gutenberg / WP block editor width only on pages, not posts or other taxonomies
- Why my admin doesn’t work after adding rest_prepare_post filter?
- Stop loading “collaborators” users on add new post or page?
- Add Sortable Column For All Post Types
- How to add ‘total’ value to custom column title on the posts list page
- Filter users by custom colum not meta key
- views_edit-post filter not working (custom post type)
- Filter out comments with certain meta key/s in the admin backend
- Filter pre_get_posts does not modify Mine/All/Pending
- Get current user data
- Prevent add_filter being applied to wp-admin pages
- How to add attributes to WordPress Admin Sub Menu List Items
- Media upload default title from file name
- Admin post list – adding an option to the date filter dropdown
- Hide Posts In Back-end/Admin Based On User’s (Pseudo) Privileges Controlled by ACF
- Filter Pages by Custom Field (ACF) in admin area
- How would I be able to use a font awesome icon as a user’s avatar?
- Register new user, assign custom role then send email
- Echo string in admin panel footer beside version no
- Filter / add_action to upgrade.php page
- How to filter with dropdown in backend for custom data
- How can i filter wordpress users by custom feild?
- How to pass a variable between filter/action functions?
- WP_Query filter by custom meta
- Having wp-admin on different domain
- How do I disable the warning “The backup of this post in your browser is different from the version below”?
- Custom registration field to SQL database
- How do you disable the verification process of user email changes?
- Filter and manipulate the get_current_user() function
- Is there a way to override only a portion of the function print_media_templates defined in wp-includes\media-template.php?
- How to loop year & month condition together to filter correctly via AJAX?
- Can’t understand apply_filter logic
- Consult array data in REST API Filter
- How to add a blog filter bar without paying money. (example inside)
- List all categories that have results in a query
- Database & Post Search
- Hook into form handle from admin users table
- login_url filter creates permanent wp-admin -> wp-login redirection loop
- WordPress add_filter to post_date
- Strange behaviour of REGEX in a WordPress filter (trying to suppress emtpy paragraphs)
- Distinguish between page and post in function
- Modify Contextual Help
- Display posts from today and future in Elementor ‘posts widget’
- Right filter for rewriting page statuscode
- Unable to defer loading of jquery
- How can I filter same content in page
- Changing title using filter not working with argument
- Archive Widget – Count only parent posts
- Remove style tags from head
- Add filter return false not working
- how to output HTML tags in post_content and not as plain text
- add_action with associative array
- Search with filters
- How to wrap pattern-matches from the_content in [wiki]-shortcode tags
- Why does wp_die() not work when inside a namespace?
- Apply pre_get_posts filter in a certain moment (just for a particular block of posts)
- How to add markup to the wp-custom-header div
- how to use apply filter for Class?
- Remove status ‘archived’ from the default post and page view
- How can I see exactly what arguments are being passed through a filter so that I may modify them?
- Widget image reorganize layout
- Override admin selected page layout
- How can I change the button text of a custom widget?
- oembed_dataparse filter not running at all for standard YouTube embed
- How to filter page title for certain page?
- WordPress set featured image to first image of the post
- Add Index to Item in WordPress Gallery
- How to add_filter only when content is not empty?
- create a shortcode with acf including a filter
- filter out
- Remove image of srcset
- How to disable sub menu items from being created?
- Modify WordPress search behaviour in backend?
- how to develop a filter in wordpress to let the user filter the page content depends on the date (newest to oldest etc…)?
- Print only parent categories of post in custom RSS feed
- How to take shortcode and content separately from a page?
- Re-order search results with posts_orderby filter and post meta value
- WordPress Tag Cloud Filter Prevents Widget HTML from loading
- Security question – Display a General Custom Login Error Message
- Dealing with the clickTrack event in wp-playlist.js in order to display audio download link on the playlist title row
- Display post after choice two taxonomy terms
- how to overwrite next_post_link
- How to stop echoing gallery inside content?
- Set Microsoft Word links to open in new window/tab
- WordPress get_avatar filter to match logins
- Having issue with dynamic data within restrict_manage_posts function
- Modify oembed code conditionally
- restrict admin panel sections to users
- Does anybody know what the $current_screen ->id for customizer.php is?