Custom Dashboard Widgets


WordPress developers could add a custom dashboard widget with support information. It will display in the Dashboard of your client’s website. You can display whatever you want, such as your contact information and a link to your website. You could also include a few instructions or messages to your client.

wpbeginner.com

How To Instructions:

Simply open your functions.php file and add the following code.

add_action('wp_dashboard_setup', 'my_custom_dashboard_widgets');
 
function my_custom_dashboard_widgets() {
global $wp_meta_boxes;

wp_add_dashboard_widget('custom_help_widget', 'Theme Support', 'custom_dashboard_help');
}

function custom_dashboard_help() {
echo '<p>Welcome to Custom Blog Theme! Need help? Contact the developer <a href="mailto:michael081932@gmail.com">here</a>. For the developer Mike Porter visit: <a href="http://begincodingnow.com" target="_blank">BeginCodingNow.com.</a></p>';
}

The above php code was adopted from wpbeginner.com Alternatively you could put this code into your custom plugin.. Please click the link for an explanation on custom plugins (also called site-specific plugins).

Pingbacks. When you add this code to your functions.php file you may see a new comment. If you don’t like this WordPress behaviour (perhaps because it clutters your Comments) you can install a plugin called No Self Pings.