Home > wordpress > remove the dashboard in wordpress

remove the dashboard in wordpress

August 10th, 2008 Leave a comment Go to comments

There are many rss in the dashboard, and sometimes it causes the wp-admin to load slowly, following is a way to remove the dashboard:

find and modify the file of index-extra.php in the folder \wp-admin:

original:

<?php require_once(’admin.php’);
require( ‘includes/dashboard.php’ );
require_once (ABSPATH . WPINC . ‘/rss.php’);

@header(’Content-Type: ‘ . get_option(’html_type’) . ‘; charset=’ . get_option(’blog_charset’));

switch ( $_GET[’jax’] ) {

case ‘incominglinks’ :
wp_dashboard_incoming_links_output();
break;

case ‘devnews’ :
wp_dashboard_rss_output( ‘dashboard_primary’ );
break;

case ‘planetnews’ :
wp_dashboard_secondary_output();
break;

case ‘plugins’ :
wp_dashboard_plugins_output();
break;

}

?>

modified:

<?php require_once(’admin.php’);
require( ‘includes/dashboard.php’ );
require_once (ABSPATH . WPINC . ‘/rss.php’);

@header(’Content-Type: ‘ . get_option(’html_type’) . ‘; charset=’ . get_option(’blog_charset’));
/*
switch ( $_GET[’jax’] ) {

case ‘incominglinks’ :
wp_dashboard_incoming_links_output();
break;

case ‘devnews’ :
wp_dashboard_rss_output( ‘dashboard_primary’ );
break;

case ‘planetnews’ :
wp_dashboard_secondary_output();
break;

case ‘plugins’ :
wp_dashboard_plugins_output();
break;

}
*/
?>



Categories: wordpress Tags: ,
  1. No comments yet.
  1. No trackbacks yet.
      
                  
      

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word