Dashboard Widgets Generator

Home » WordPress Generators » Dashboard Widgets Generator
The name of the function that adds the widget to the dashboard.
This function will be called when the widget is displayed.
The title of the widget.
The ID/Slug of the widget.
Force to Top
If checked, the widget will be forced to the top of the dashboard.
                    // 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...
}