classipress dashboard news tweets etc
I need to clean up the main dashboard..I need to remove everything but the current state..latest news.tweets etc.. I do this on the main wordpress dashboard by adding this to the functions file..[code]// disable default dashboard widgets
function disable_default_dashboard_widgets() {
remove_meta_box('dashboard_recent_comments', 'dashboard', 'core');
remove_meta_box('dashboard_incoming_links', 'dashboard', 'core');
remove_meta_box('dashboard_plugins', 'dashboard', 'core');
remove_meta_box('dashboard_recent_drafts', 'dashboard', 'core');
remove_meta_box('dashboard_primary', 'dashboard', 'core');
remove_meta_box('dashboard_secondary', 'dashboard', 'core');
}
add_action('admin_menu', 'disable_default_dashboard_widgets');
// remove upgrade nag***/
if ( !current_user_can( 'edit_users' ) ) {
add_action( 'init', create_function( '$a', "remove_action( 'init', 'wp_version_check' );" ), 2 );
add_filter( 'pre_option_update_core', create_function( '$a', "return null;" ) );
}[code]
I need a similar code for your dashboard and the file to add it to
thanks
DAN
Last edited by dan1000; December 26th, 2010 at 10:44 PM.
Reason: spelling