wordpress powerful, and strong expansion, thanks to its numerous plug-in, easy to expand functionality, basically a complete website some features, all functions can be achieved through its third-party plug-ins. WordPress has a strong community support, there are tens of millions of developers contribute and review WordPress, WordPress is so safe and active. Because static poor, or rather the real static doing a good job, so when accessing the background of WordPress will load a lot of interface information. When you log in WordPress background, it will connect interface to the official WordPress, get updates, theme updates, plug-in updates, language packs and other updates, due to the WordPress official servers in foreign countries, so that domestic users access to load extremely slow, sometimes directly suspended animation . We need to do is block out unwanted background check function, add the following code to the file functions.php function under your current theme directory:
-
// function to remove unnecessary background
-
function disable_dashboard_widgets() {
-
remove_meta_box ( 'dashboard_recent_comments' , 'Dashboard' , 'Normal' ) ; // Recent Comments
-
remove_meta_box ( 'dashboard_recent_drafts' , 'Dashboard' , 'Normal' ) ; // recent drafts
-
remove_meta_box('dashboard_primary', 'dashboard', 'core');//wordpress博客
-
remove_meta_box ( 'dashboard_secondary' , 'Dashboard' , 'Core' ) ; // other news WordPress
-
remove_meta_box('dashboard_right_now', 'dashboard', 'core');//wordpress概况
-
remove_meta_box('dashboard_incoming_links', 'dashboard', 'core');//wordresss链入链接
-
remove_meta_box ( 'dashboard_plugins' , 'Dashboard' , 'Core' ) ; // WordPress links widget
-
remove_meta_box ( 'dashboard_quick_press' , 'Dashboard' , 'Core' ) ; // WordPress Rapid Release
-
}
-
add_action('admin_menu', 'disable_dashboard_widgets');
-
// Remove WordPress version number to load the JS and CSS links
-
function wpdaxue_remove_cssjs_ver( $src ) {
-
if( strpos( $src, 'ver=' ) )
-
$src = remove_query_arg( 'ver', $src );
-
return $src;
-
}
-
add_filter( 'style_loader_src', 'wpdaxue_remove_cssjs_ver', 999 );
-
add_filter( 'script_loader_src', 'wpdaxue_remove_cssjs_ver', 999 );
-
// removed automatically saved
-
wp_deregister_script('autosave');
-
// Remove revision
-
remove_action('post_updated','wp_save_post_revision' );
-
// disable Google Open Sans font background, speed up website
-
add_filter( 'gettext_with_context', 'wpdx_disable_open_sans', 888, 4 );
-
function wpdx_disable_open_sans( $translations, $text, $context, $domain ) {
-
if ( 'Open Sans font: on or off' == $context && 'on' == $text ) {
-
$translations = 'off';
-
}return $translations;
-
}