Custom Dashboard Widgets

WordPress developers chould 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.

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="">here</a>. For the developer Mike Porter visit: <a href="" target="_blank">Porter Websites.</a></p>';

The above php code was adopted from 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.

Like this content? Sign up for free updates.

Leave a comment

Your email address will not be published. Required fields are marked *