Add A Widget To Your WordPress Dashboard
Everyone knows how to add a widget to the WordPress blog but not everyone knows how to add a widget to their dashboard. Hence our featured WordPress trick for today from Seokru which is a pretty neat snippet that you put in your functions.php file.
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>'; }
Hope you enjoy using this one!