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

2021年3月9日10:09:21 发表评论
微信搜一搜 ts小陈

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

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

页面加载时间

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

页面加载次数

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

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

小陈号卡
ts小陈

发表评论(不允许含有网址!)

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

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