本文最后更新于2022.04.08-14:48,某些文章具有时效性,若有错误或已失效,请在下方留言或联系涛哥。
效果

代码
在functions.php中加入下面代码
//页面请求次数及打开时间自动检测
function wp_page_speed() {
date_default_timezone_set( get_option( 'timezone_string' ) );
$content .= '';
$content .= timer_stop( $display = 0, $precision = 2 );
$content .= 's';
echo $content;
}
在需要使用的页面引用下面的代码
<?php echo wp_page_speed($content) ?>