Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter waaaaat

    (@waaaaat)

    Plugin Author dpowney

    (@dpowney)

    Hi there,

    Nice idea. The ratings table is shown using the WP_List_Table class. This class has some action hooks and filters if you want to extend it to add custom columns. I’ve done this before for the WP users table in my Badgearoo plugin.

    e.g.

    add_action('manage_users_columns','broo_add_user_badges_columns');
    add_action('manage_users_custom_column','broo_manage_user_badges_columns',10,3);
    
    function broo_add_user_badges_columns( $column_headers ) {
        $column_headers['badges'] = __( 'Badges' , 'badgearoo' );
        $column_headers['points'] = __( 'Points' , 'badgearoo' );
        $column_headers['view-assignments'] = __( 'Action' , 'badgearoo' );
        return $column_headers;
    }

    function broo_manage_user_badges_columns( $custom_column, $column_name, $user_id ) {
    // return column content for each new column name…
    }

    Multi Rating does not have any features out-of-the box to do this at the moment.

    Daniel

    Thread Starter waaaaat

    (@waaaaat)

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding custom fields to the admin columns’ is closed to new replies.