[wp-hackers] Possible to deactivate Dashboard-Widgets?

Frank Bueltge frank at bueltge.de
Sat Dec 13 13:25:33 GMT 2008

this is the code to add the meta box in dashboard:
wp_add_dashboard_widget( 'dashboard_quick_press', __( 'QuickPress' ),
'wp_dashboard_quick_press' );

and in the function wp_add_dashboard_widge was used the function add_meta_box
add_meta_box( $widget_id, $widget_name , $callback, 'dashboard',
$location, 'core' );

now i have write a small test in a plugin:
function mytest() {
	remove_meta_box('dashboard_quick_press', 'dashboard', 'core');

add_action( 'admin_menu', 'mytest' );

Thanks, works now, i have test with the false id :(
Best wishes and thank you

More information about the wp-hackers mailing list