// Register our custom dashboard widget.
function wpturbo_add_my_dashboard_widget() {
wp_add_dashboard_widget(
"wpturbo-my_custom_widget",
"My Custom Widget",
"wpturbo_render_my_dashboard_widget"
);
}
// Add the function to the 'wp_dashboard_setup' action to make sure it executes after the theme.
add_action( 'wp_dashboard_setup', 'wpturbo_add_my_dashboard_widget' );
// Create the function to output the contents of our Dashboard Widget.
function wpturbo_render_my_dashboard_widget () {
// The code to render your widget goes here...
}