# Support Contact Dashboard Widget

> Shows your agency or developer contact details on the dashboard, so clients always know how to reach you.

- Type: PHP
- Runs: Admin only
- Category: [Dashboard](https://wpide.com/library/category/dashboard/)
- Tags: dashboard, widget, client
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/support-contact-dashboard-widget/

## Code

```php
$wpide_support = array(
    'name'  => 'Acme Web Studio',
    'email' => 'help@example.com',
    'phone' => '+1 555 0100',
    'url'   => 'https://example.com/support',
    'hours' => 'Monday to Friday, 9:00 to 17:00',
);

add_action( 'wp_dashboard_setup', function () use ( $wpide_support ) {
    wp_add_dashboard_widget( 'wpide_support_contact', 'Need Help?', function () use ( $wpide_support ) {
        printf( '<p>Questions about your website? Contact <strong>%s</strong>.</p><ul>', esc_html( $wpide_support['name'] ) );
        if ( $wpide_support['email'] ) {
            printf( '<li>Email: <a href="mailto:%1$s">%1$s</a></li>', esc_html( antispambot( $wpide_support['email'] ) ) );
        }
        if ( $wpide_support['phone'] ) {
            printf( '<li>Phone: <a href="tel:%1$s">%2$s</a></li>', esc_attr( preg_replace( '/[^0-9+]/', '', $wpide_support['phone'] ) ), esc_html( $wpide_support['phone'] ) );
        }
        if ( $wpide_support['url'] ) {
            printf( '<li><a href="%s" target="_blank" rel="noopener">Open a support request</a></li>', esc_url( $wpide_support['url'] ) );
        }
        echo '</ul>';
        if ( $wpide_support['hours'] ) {
            printf( '<p style="color:#646970">%s</p>', esc_html( $wpide_support['hours'] ) );
        }
    } );
}, 1 );
```

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Support Contact Dashboard Widget" 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/
