Custom date column in user table not sorting correctly
You have to add following code after your code to get the dates sorting correctly. It’s working correctly for me. Hope it will help. function change_user_order( $args ){ if( isset( $args[‘orderby’] ) ) { $args[‘meta_key’] = $args[‘orderby’]; } return $args; } add_filter( ‘users_list_table_query_args’, ‘change_user_order’ );