解决wordpress前后台非常卡的几个方法

我就用了下面这三个,快了很多,如果还有请评论一下

一,修改数据库ip

修改为ip链接,非域名
在这里插入图片描述

二,禁止字体

在这里插入图片描述

function remove_open_sans() {
    
    
  wp_deregister_style( 'open-sans' );
  
  wp_register_style( 'open-sans', false );
  
  wp_enqueue_style('open-sans', '');
  
  }
  
  add_action( 'init', 'remove_open_sans' );
   

//此函数会禁用Google Open Sans字体,加快后台访问速度
function wpdx_disable_open_sans( $translations, $text, $context, $domain ) {
    
    
  if ( 'Open Sans font: on or off' == $context && 'on' == $text ) {
    
    
    $translations = 'off';
  }
  return $translations;
}

三,下载插件
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_44797182/article/details/114963508