Categories
Kanban

Dashboard widget

Her er opskriften til en dashboard widget, inspireret af Olinik & Jackson “The WordPress Anthology” (2011):

function kanbanAdmin() {
	require('log-new.php');
}

// Register the new Dashboard widget
function add_kanbanAdmin(){
	wp_add_dashboard_widget('webkanban', 'Webkanban Create Log', 'kanbanAdmin' );
}

// add to the Dashboard 
add_action('wp_dashboard_setup','add_kanbanAdmin');

By Per Thykjaer Jensen

Per is the WordPress expert at Business Academy Aarhus. Senior Lecturer at the Multimedia Design Programme. His background is in the Arts: MA Literature History and BA Art History. Later he added a MA in IT, interaction and Multimedia. And he is a wicked Linux user.