Add this code to functions.php
of your current theme ( preferably, child theme ):
function wpse_user_sortable_columns($columns) {
$columns['role'] = 'role';
return $columns;
}
add_filter('manage_users_sortable_columns', 'wpse_user_sortable_columns');
This will change Role
column to be sortable.
Related Posts:
- Split columns into three+ divs?
- First post full width, rest in two columns
- Make custom post column sortable
- Twenty Seventeen custom section – one column layout
- custom user table columns
- Columns Block no longer appears when searching
- Columns are so narrow I can’t edit
- Background of panel changing to Blue [closed]
- Passing inputs from one column to the Other within a post
- How do I create a column down the right-hand side of my site?
- Why is this sortable filesize column in media library not sorting correctly?
- How to set ‘column-primary’ to backoffice 2nd column by default
- WP List Table custom column wrapping issue
- Virtual Composer: How to horizontally align contents from two different columns? [closed]
- Sortable columns by meta value holding a date – can’t get it to work
- Specify Table Column Width on a Page
- How to set value in a custom column in wordpress?
- How to have two column on my index page?
- Creating two Columns on a Page. [closed]
- Is there a way to create multiple columns of text with alphabetical ordering going down each column not across the columns
- Last Logged In Sortable Column
- Make a column full width in an inner section
- the_modified_author() returning blank
- Adding ‘menu order’ column to custom post type admin screen
- How do I set the default admin sort order for a custom post type to a custom column?
- sortable custom column in media library
- Add new column to sites page
- Sortable admin columns, when data isn’t coming from post_meta
- manage posts custom column is not populating data from meta boxes
- How to get my loop to pull posts into three columns
- Pages with 2 Columns
- Custom taxonomy – custom sortable column
- Custom Post Type, Two categories, Two columns with Pagination
- Replacing the title in admin list table
- How can I add columns to custom post tables
- Is it possible to create column width presets in Gutenberg?
- how to display “Edit | Quick Edit | Trash | View” in custom WP_List_Table column?
- Problem adding column to WC Subscription [closed]
- How can I add buttons to a custom column in the taxonomy table?
- WordPress Theory Lesson – Image Columns within posts with alignment?
- How do I change the default sort order of a custom column on the posts page?
- User Last Login Sort Column
- Add Sortable Column For All Post Types
- Vertical alphabetically post columns
- Creating a 3-column layout on a WordPress Page
- Are there any filters to add additional columns to the list table on edit-comments.php?
- How can I replace the text at the top of a custom column into a icon?
- How to add ‘total’ value to custom column title on the posts list page
- Admin multiple column sorting
- How to add class or id to shortcode HTML elements?
- How to divide and display categories into two columns
- Admin table list API?
- How to add custom classes to admin list table default rows or columns?
- Filter to shorten column content on edit-tags.php
- Order a custom post type admin screen by a second custom post type title
- Adding Page URL to the Pages Admin Table
- Show image on the left and content on the right using ul li
- Changer numbers of columns in woocommerce shop
- Custom columns doesn’t appear in custom post type
- Problem with $post_id object’s property
- Two columns in homepage each with one category
- No three-columns template in TwentyEleven?
- CPT Columns doesn’t show categories
- Getting post attchment URL to populate a CPT Admin Page Column
- Create simple columned archive page
- Admin: how to make a custom list filter button send GET queryvars
- How to add columns to wordpress menu editor
- How to change gallery grid from 4 columns to 3 columns? [closed]
- wpdb query with dynamic column name?
- creating single page with 2 columns while theme is 3 column
- Change default post style to columns
- Divide the list into two columns (get_posts)
- How to Split loop in multiple column in archive page
- Custom sortable column with WPAlchemy
- Sortable column with custom data by date
- custom filtering admin columns
- Custom column on CPT not showing correct value when meta data not set
- Add taxonomy column with meta field (ACF) content
- Putting footer links into different columns
- Custom sorting in post columns by ACF Pro Select Field
- Undeletable column in Posts
- Wp-query and column blocks
- Sort columns in the ‘Pages’ dashboard overview
- how to split vertical menu into two columns using walker nav menu
- HowTo: Add wrapper to columns shortcode?
- Add column and acf field content for cpt
- Columns depending on posts count
- Making my custom column sortable
- display wordpress user who published a pending post of another user
- Custome column sort by date not title
- Adding custom fields to the Quick Edit screen – puzzled about the column concept
- displaying child pages in columns when on a parent page
- How to create three columns from selected posts
- Simple Data Table Update and Page Integration
- Why values dont shows in custom post column?
- How to insert a column (part of theme) in the middle of the content body?
- Images at the same vertical position in multiple columns
- Achieve the following layout
- How to sort custom sortable column by custom table value
- Sorting Users page admin column with ACF field