@notlicht
7 years, 5 months ago
Thanks!
I think I solved it, but i am not sure if this is a good solution 😉 I added this into my function.php of my childtheme:
add_action( 'manage_users_custom_column', 'din_print_user_columns', 15, 3 ); add_filter( 'manage_users_columns', 'din_add_user_columns', 15 ); function din_print_user_columns( $value, $column_name, $id ) { if( 'Vertriebsnummer' == $column_name ) { $new_column = xprofile_get_field_data( 'Vertriebsnummer', $id ); return $new_column; } } function din_add_user_columns( $vertrieb ) { $vertrieb['Vertriebsnummer'] = 'Vertriebsnummer'; return $vertrieb; }