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
- Hook added to the_content seems to be called multiple times
- Display WooCommerce newest product reviews on top [closed]
- Overriding wp_get_archives() apply_filters()
- How can I hide all posts that don’t have a thumbnail?
- Display sortable User meta column in admin panel user’s page
- Restrict filter to run only inside specific function
- How to display only logged in user’s post comments in comments area
- Hooking into register_admin_color_schemes
- How to add a custom filter in functions.php
- How do I add a current class to the current post?
- How apply_filters work in WordPress?
- Apply a filter only once
- What functions are included in apply_filter(‘the_content’)
- Are there Limitations on filter handles?
- Hide content editor for posts after approriate date
- Buddypress: Edit activity when new blog post [closed]
- Same Conditionals Not Working on Two Different Hooks
- Filter get_template_part() $args array
- Modify a Filters Second Parameter
- Variables in post title
- How to edit dashboard search posts button texts for my CPT?
- Stopping user deletion from running on error
- Insert term when page is published – avoid duplicates after edits
- Capture post content before page renders
- Empty string supplied as input when parsing content
- How can I remove the kses filters when saving a specific post type ? (it breaks my JSON)
- Remove_action does not work
- Filter term taxonomy metabox in custom post type
- How can I replace content in the WP Admin area before an admin page is rendered?
- WooCommerce Custom Product Validation [closed]
- Make WP not format code, not insert line breaks in between tags
- the_content filter together with require_once returns 1 instead of the content of the included file
- Missing Argument 2 for apply_filter
- How to get a single hook from wp_head()?
- WP filter to alter admin CSS styles?
- How to apply a filter to an ACF wysiwig editor field output?
- Add sub menu page in your plugin
- Is it possible to bind a function to a filter hook via Ajax?
- Change the template when the user is not logged in using page_template filter (it does not work)
- WooCommerce coupon hook argument NULL when using filter woocommerce_get_shop_coupon_data
- How can I edit comment meta value before it is saved?
- Disable sanitize_file_name on upload without modifying functions.php
- Filter Media by attached page or blog post in Library
- How to stop DOMDocument destroying embeds?
- How to modify image caption in posts?
- Extend Nonce Lifetime for Specific Nonce Creation
- Run `wp_insert_post_data` on all posts
- Consult array data in REST API Filter
- WordPress add_filter to post_date
- create a shortcode with acf including a filter
- Overriding Generated Attachment Post URL
- Pagination while keeping the filters
- using filters on the function from class
- Put data in my-account/view-order/id/ page
- add_filter not adding the filter
- getpost content with all formatting for admin pages
- Filter image and text from post format
- Filter posts by multiple checkbox categories
- Remove pipe in views admin page filter
- Passing value from one hook to another