Snippets

Add a widget to your dashboard

For those who want to create your own widget, it’s easier than it seems. just add the html to the snippet.

Where: functions.php

function custom_dashboard_widgets(){
    wp_add_dashboard_widget('my_custom_widget_id', 'My Widget Title', 'my_own_widget');
}
function my_own_widget() {
    echo '<p>Your content here</p>';
}

Source: http://www.seokru.com...

Share this snippet

 

Leave a Reply

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

Please respect the following rules: No advertising, no spam, no keyword in name field. Thank you!