function new_modify_user_table( $column ) {
$column['test-1'] = 'test 1';
$column['test-2'] = 'test 2';
return $column;
}
add_filter( 'manage_users_columns', 'new_modify_user_table' );
function new_modify_user_table_row( $val, $column_name, $user_id ) {
switch ($column_name) {
case 'test-1' :
return get_user_meta($user_id, 'wpcf-test-1', true);
case 'test-2' :
return get_user_meta($user_id, 'wpcf-test-2', true);
default:
}
return $val;
}
add_filter( 'manage_users_custom_column', 'new_modify_user_table_row', 10, 3 );
Visto en toolset