Skip to content

Early-bird lifetime licence: $199 once, for the first 200 buyers only. See the offer

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.

  • Type PHP
  • Runs Everywhere (runs as WordPress loads)
  • Category Admin area
  • Tested with WordPress 7.1

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
<?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.

Move your snippets over this afternoon.

Importing changes nothing until you switch over, and your old shortcodes keep working.