WordPress页脚显示页面加载时间的方法

2021年3月9日10:09:21 发表评论
广告也精彩

直接把下边的代码放到要输出显示的位置即可。

WordPress如果要在网站底部显示,将代码添加到你当前主题目录下的footer.php

页面加载时间

  1. <?php timer_stop(1); ?> //网页加载时间(秒)

页面加载次数

  1. <?php echo get_num_queries(); ?> //网页加载查询量

WordPress页脚显示页面加载时间的方法

  • 我的微信
  • 有问题可随时与我联系
  • weinxin
  • 微信小程序
  • 随时随地查看文章
  • weinxin
ts小陈

发表评论(请规范评论)--评论需审核

:?: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :cry: :mrgreen: :neutral: :razz:

已登录用户不需要填写以下内容