Top
Home

Add Widget

When Creating Widgets, this code puts a widget box on the Dashboard!



<?php
function MooseLoose() {
wp_add_dashboard_widget(
'Moose_Loose',
'Moose Loose', // Title.
'example_dashboard_widget_function'
);
}
add_action( 'wp_dashboard_setup', 'MooseLoose' );
function example_dashboard_widget_function() {
echo "Hello World, I'm a great Dashboard Widget";
}
?>