You can put the following code in the plugin’s functions.php file:
function uwcs_modify_user_table( $column ) {
$column['credits'] = 'Credits';
return $column;
}
add_filter( 'manage_users_columns', 'uwcs_modify_user_table' );
function uwcs_modify_user_table_row( $val, $column_name, $user_id ) {
$hasBalance = round(get_user_meta($user_id, '_uw_balance', true),0);
switch ($column_name) {
case 'credits' :
return $hasBalance;
break;
default:
}
return $return;
}
add_filter( 'manage_users_custom_column', 'uwcs_modify_user_table_row', 10, 3 );