Your own welcome box on the dashboard
Adds a box at the top of the dashboard with your message: who to call for help, links to your guides, anything your clients need.
Before you switch it on: Write your own title and message (the email address and phone number are examples).
It arrives switched off, even when you install its whole pack with "Switch on after installing".
<?php
add_action(
'wp_dashboard_setup',
static function () {
wp_add_dashboard_widget(
'snipfire_welcome',
'Welcome',
static function () {
echo '<p>Need help with the site? Email <a href="mailto:support@example.com">support@example.com</a> or call +30 210 000 0000, weekdays 9:00–17:00.</p>';
}
);
// Move it to the top.
global $wp_meta_boxes;
$box = $wp_meta_boxes['dashboard']['normal']['core']['snipfire_welcome'] ?? null;
if ( $box ) {
unset( $wp_meta_boxes['dashboard']['normal']['core']['snipfire_welcome'] );
$wp_meta_boxes['dashboard']['normal']['high']['snipfire_welcome'] = $box; // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited -- Moving our own box.
}
}
);
In these packs
- More admin tweaks: Useful columns, a tidier admin bar, a welcome box for clients, and fewer menus for editors.