您需要使用过滤器\'manage_\' . $screen->id . \'_columns\'
添加列和manage_users_custom_column
显示其值。
add_filter( \'manage_users_columns\', \'column_register_wpse_101322\' );
add_filter( \'manage_users_custom_column\', \'column_display_wpse_101322\', 10, 3 );
function column_register_wpse_101322( $columns )
{
$columns[\'uid\'] = \'ID\';
return $columns;
}
function column_display_wpse_101322( $empty, $column_name, $user_id )
{
if ( \'uid\' != $column_name )
return $empty;
return "<strong>$user_id</strong>";
}
这样,ID也将显示在屏幕选项中。