Linux 软件免费装
Banner图

GenTime: Inspect page generation time

开发者 Cybr
更新时间 2024年7月30日 09:41
PHP版本: 5.6.0 及以上
WordPress版本: 6.6.1
版权: GPLv3
版权网址: 版权信息

标签

performance php time admin bar generation

下载

1.0.3 1.0.0 1.0.1 1.0.4 1.1.0 1.0.2

详情介绍:

GenTime This plugin shows site administrators the time in seconds of how fast the page loaded in the WordPress admin bar. That's it, pretty simple!

安装:

  1. Install GenTime either via the WordPress.org plugin directory or upload the files to your server.
  2. Either Network Activate this plugin or activate it on a single site.
  3. That's it!
过滤器 Changes the minimum role for which the GenTime is shown: ` add_filter( 'gentime_minimum_role', 'my_gentime_minimum_role' ); function my_gentime_minimum_role( $default = 'install_plugins' ) { // See http://codex.wordpress.org/Roles_and_Capabilities for a list of role names $role = 'edit_pages'; return $role; } **Changes the number of decimals to output:**add_filter( 'gentime_decimals', 'my_gentime_decimals' ); function my_gentime_decimals( $default = 3 ) { return 4; }`

更新日志:

1.1.0 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0