# Custom Dashboard Welcome Widget

> Adds a Dashboard widget with your own message, such as instructions for clients or contact details for support.

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

## Code

```php
add_action( 'wp_dashboard_setup', function () {
    wp_add_dashboard_widget( 'wpide_welcome_widget', 'Welcome', function () {
        $email = (string) get_option( 'admin_email' );

        echo '<p>Welcome to your website dashboard. Use the menu on the left to add pages, write posts and upload media.</p>';
        echo '<p>Questions? Email <a href="mailto:' . esc_attr( $email ) . '">' . esc_html( $email ) . '</a>.</p>';
    } );
} );
```

## Notes

Edit the widget title and the two paragraphs.

## How to use it

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