# Purchased Downloads Column in the EDD Orders List

> Adds a column to Downloads > Orders listing what each order contains, so you can see what was sold without opening every order.

- Type: PHP
- Runs: Admin only
- Category: [Easy Digital Downloads](https://wpide.com/library/category/edd/)
- Requires: Easy Digital Downloads
- Tags: edd, admin, orders, columns
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/edd-orders-items-column/

## Code

```php
add_filter( 'edd_payments_table_columns', function ( $columns ) {
    $new = array();

    foreach ( $columns as $key => $label ) {
        $new[ $key ] = $label;

        if ( 'customer' === $key || 'email' === $key ) {
            $new['wpide_items'] = 'Items';
        }
    }

    return isset( $new['wpide_items'] ) ? $new : $new + array( 'wpide_items' => 'Items' );
} );

add_filter( 'edd_payments_table_column', function ( $value, $order_id, $column ) {
    if ( 'wpide_items' !== $column || ! function_exists( 'edd_get_order_items' ) ) {
        return $value;
    }

    $items = edd_get_order_items( array( 'order_id' => $order_id, 'number' => 6 ) );
    $names = array();

    foreach ( array_slice( $items, 0, 5 ) as $item ) {
        $names[] = esc_html( $item->product_name );
    }

    if ( count( $items ) > 5 ) {
        $names[] = esc_html( 'and more' );
    }

    return implode( '<br>', $names );
}, 10, 3 );
```

## Notes

Shows up to five items per order, then "and N more".

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Purchased Downloads Column in the EDD Orders List" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
