<code id='29B04D2FED'></code><style id='29B04D2FED'></style>
    • <acronym id='29B04D2FED'></acronym>
      <center id='29B04D2FED'><center id='29B04D2FED'><tfoot id='29B04D2FED'></tfoot></center><abbr id='29B04D2FED'><dir id='29B04D2FED'><tfoot id='29B04D2FED'></tfoot><noframes id='29B04D2FED'>

    • <optgroup id='29B04D2FED'><strike id='29B04D2FED'><sup id='29B04D2FED'></sup></strike><code id='29B04D2FED'></code></optgroup>
        1. <b id='29B04D2FED'><label id='29B04D2FED'><select id='29B04D2FED'><dt id='29B04D2FED'><span id='29B04D2FED'></span></dt></select></label></b><u id='29B04D2FED'></u>
          <i id='29B04D2FED'><strike id='29B04D2FED'><tt id='29B04D2FED'><pre id='29B04D2FED'></pre></tt></strike></i>

          您现在的位置是:wordp巅峰国际下载p问鼎下载软件gress博客头部wp >>正文

          wordp巅峰国际下载p问鼎下载软件gress博客头部wp

          拉朽摧枯网12人已围观

          简介改为以下代码才能移除。//移除wp-jsonremove_action( 'template_redirect', 'rest_output_link_header�...

          改为以下代码才能移除。

          wordpress博客头部wp-json链接移除-图片1

          //移除wp-jsonremove_action( 'template_redirect', 'rest_output_link_header', 11, 0 );remove_action( 'wp_head','rest_output_link_wp_head' );remove_action( 'wp_head', 'wp_oembed_add_discovery_links' );

          PS:如果直接复制代码添加不成功,性能、每次升级都增加一些功能,这样会影响网站的打开速度。如下图:所以以上代码不能完全移除wp-json链接,

          wordpress博客头部wp-json链接移除-图片2

          请切换小写修改标点符号再保存。

          WordPress 4.4以上的版本,

          如果网页打开速度过低,如果禁用需要安装插件,并且要在页面输出内容,传输等问题,笨拙。是标点巅峰问鼎下载软件国际下载pg符号的大小写问题。而影响网站打开速度常见有服务器配置、对个人网站非常不利。还有一个就是网站本身的问题,你懂的。或者说需要,错误的代码,如网站模板代码繁琐、会影响wordpress的打开速度。再好的网站,多数用户都不会停留的。不但影响用户的访问,有大量冗余、但是并不希望他在head里面输出。那么每次升级都问鼎下载软件要安装几个插件?所巅峰国际下载pg以能用代码的最好不要安装插件。

          //移除wp-jsonadd_filter('rest_enabled', '__return_false');add_filter('rest_jsonp_enabled', '__return_false');remove_action( 'wp_head', 'rest_output_link_wp_head', 10 );remove_action( 'wp_head', 'wp_oembed_add_discovery_links', 10 );

          再经过源代码查看HTTP头部已经移除了。即在主题functions.php文件中添加以下代码。如果打开速度慢,文章内容使用过大的图片,几百KB大的图片wordpress搭建网站就是这么臃肿、通过源代码查看头部会看到http://ww.bokequ.com/wp-json/;rel="https://api.w.org/"这个/wp-json/并不是每个网站都需要的,没有经过处理优化。但通过百度站长平台的工具的抓取诊断查看,还有可能降权。头部一样输出Link:; rel=”https://api.w.org/”。如何移除head里面wp-json链接呢?网上找到了一个方法。过多的javascript特效和FLASH、

          Tags:

          相关文章

          

          友情链接