# Customer Email and Phone Column in the Orders List

> Adds the customer's email address and phone number to the admin orders list as click-to-email and click-to-call links.

- Type: PHP
- Runs: Admin only
- Category: [WooCommerce](https://wpide.com/library/category/woocommerce/)
- Requires: WooCommerce
- Tags: woocommerce, admin, orders, customers
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/woo-orders-contact-column/

## Code

```php
$wpide_contact_column = function ( $columns ) {
    $columns['wpide_contact'] = 'Contact';

    return $columns;
};

$wpide_contact_render = function ( $column, $order ) {
    if ( 'wpide_contact' !== $column ) {
        return;
    }

    $order = $order instanceof WC_Order ? $order : wc_get_order( $order );

    if ( ! $order ) {
        return;
    }

    $email = $order->get_billing_email();
    $phone = $order->get_billing_phone();

    if ( $email ) {
        printf( '<a href="mailto:%1$s">%2$s</a><br>', esc_attr( $email ), esc_html( $email ) );
    }

    if ( $phone ) {
        printf( '<a href="tel:%1$s">%2$s</a>', esc_attr( preg_replace( '/[^\d+]/', '', $phone ) ), esc_html( $phone ) );
    }
};

add_filter( 'manage_woocommerce_page_wc-orders_columns', $wpide_contact_column );
add_filter( 'manage_edit-shop_order_columns', $wpide_contact_column );
add_action( 'manage_woocommerce_page_wc-orders_custom_column', $wpide_contact_render, 10, 2 );
add_action( 'manage_shop_order_posts_custom_column', $wpide_contact_render, 10, 2 );
```

## Notes

Only staff who can view the orders screen see these details.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Customer Email and Phone Column in the 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/
