Custom widget for WordPress Dashboard

By | December 18, 2011

Login and Share to get Free Bitcoins

For every visitor from share you will earn Bitcoin/Satoshi

Sponsor Ads

stumble

Create custom Dashboard widget from WordPress

Using custom dashboard widget you can run news announcements to authors,subscribers.Here we are sharing how to create a custom widget for your dashboard.Add this code  following code to your WordPress theme function template.That it’s you can see the dashboard custom widget on your WordPress dashboard.

Appearance–>Editor–>functions.php

[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’, ‘LiveTUT | Support’, ‘custom_dashboard_help’);
}

function custom_dashboard_help() {
echo ‘
Widget created by Livetut.com.If you have any questions or need assistance,
please contact us through E-mail: admin@livetut.com or submit
<a href="http://www.livetut.com/help/">here</a>’;

}
[/code]

By changing the echo string you can give your  custom message.

2 thoughts on “Custom widget for WordPress Dashboard

Leave a Reply

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

Human Verification: In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.