Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Joachim Jensen

    (@intoxstudio)

    You can add this to functions.php in your theme, or a custom plugin:

    
    add_filter('rua/admin/columns', function ($columns) {
        $columns['id'] = 'ID';
        return $columns;
    });
    
    add_action('rua/admin/columns/render', function ($level, $column_name, $items) {
        if ($column_name !== 'id') {
            return;
        }
        echo $level->ID;
    }, 10, 3);
    
    Thread Starter scooterlord

    (@scooterlord)

    This is awesome – works as intended! Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add an ID column in the table’ is closed to new replies.