国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網 會員登陸 & 注冊

使用wordpress后臺管理很慢怎么辦

2022-08-05 20:44 作者:好學習的Wade  | 我要投稿

wordpress網站后臺管理比較慢怎么辦

我們只需要將下面的代碼進行復制,然后粘貼進去,然后保存就可以了。

首先我們先找到外觀,主題文件編輯器


然后找到functions.php,找不到的話直接ctrl+f查找就可以啦,然后找到底部添加下面這些代碼:


/*禁用谷歌字體和頭像*/
function kratos_get_avatar( $avatar ) {
$avatar = preg_replace( “/http:\/\/(www|\d).gravatar.com/”,”http://cn.gravatar.com”,$avatar );
return $avatar;
}
add_filter( ‘get_avatar’, ‘kratos_get_avatar’ );

function coolwp_remove_open_sans_from_wp_core() {
wp_deregister_style( ‘open-sans’ );
wp_register_style( ‘open-sans’, false );
wp_enqueue_style(‘open-sans’,”);}
add_action( ‘init’, ‘coolwp_remove_open_sans_from_wp_core’ );

// 屏蔽谷歌字體
add_filter( ‘gettext_with_context’, ‘wpjam_disable_google_fonts’, 888, 4);
function wpjam_disable_google_fonts($translations, $text, $context, $domain ) {
$google_fonts_contexts = array(‘Open Sans font: on or off’,’Lato font: on or off’,’Source Sans Pro font: on or off’,’Bitter font: on or off’);
if( $text == ‘on’ && in_array($context, $google_fonts_contexts ) ){
$translations = ‘off’;
}

return $translations;
}

//屏幕谷歌的API

// 徹底關閉自動更新
add_filter(‘automatic_updater_disabled’, ‘__return_true’);
// 關閉更新檢查定時作業(yè)
remove_action(‘init’, ‘wp_schedule_update_checks’);

// 移除已有的版本檢查定時作業(yè)
wp_clear_scheduled_hook(‘wp_version_check’);

// 移除已有的插件更新定時作業(yè)
wp_clear_scheduled_hook(‘wp_update_plugins’);

// 移除已有的主題更新定時作業(yè)
wp_clear_scheduled_hook(‘wp_update_themes’);

// 移除已有的自動更新定時作業(yè)
wp_clear_scheduled_hook(‘wp_maybe_auto_update’);

// 移除后臺內核更新檢查
remove_action( ‘admin_init’, ‘_maybe_update_core’ );

// 移除后臺插件更新檢查
remove_action( ‘load-plugins.php’, ‘wp_update_plugins’ );
remove_action( ‘load-update.php’, ‘wp_update_plugins’ );
remove_action( ‘load-update-core.php’, ‘wp_update_plugins’ );
remove_action( ‘admin_init’, ‘_maybe_update_plugins’ );

// 移除后臺主題更新檢查
remove_action( ‘load-themes.php’, ‘wp_update_themes’ );
remove_action( ‘load-update.php’, ‘wp_update_themes’ );
remove_action( ‘load-update-core.php’, ‘wp_update_themes’ );
remove_action( ‘admin_init’, ‘_maybe_update_themes’ );

// 禁止古騰堡加載 Google 字體
add_action(‘admin_print_styles’, function(){
wp_deregister_style(‘wp-editor-font’);
wp_register_style(‘wp-editor-font’, ”);
});

最后一步,代碼全部復制完成之后,點擊更新文件就可以啦。


使用wordpress后臺管理很慢怎么辦的評論 (共 條)

分享到微博請遵守國家法律
甘德县| 旺苍县| 齐齐哈尔市| 工布江达县| 乌苏市| 丹东市| 赤峰市| 万荣县| 尖扎县| 岳普湖县| 泸州市| 巴南区| 星子县| 任丘市| 澄江县| 柘城县| 依兰县| 深泽县| 崇州市| 南通市| 石林| 若尔盖县| 昌平区| 和平区| 齐齐哈尔市| 波密县| 会同县| 福贡县| 乌恰县| 泾阳县| 蒲城县| 信宜市| 常山县| 阿尔山市| 南江县| 二连浩特市| 个旧市| 浦北县| 馆陶县| 潞西市| 陕西省|