Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

  • notlicht
    Participant

    @notlicht

    Thanks!


    notlicht
    Participant

    @notlicht

    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;
    }
Viewing 2 replies - 1 through 2 (of 2 total)
Skip to toolbar