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!
- Install GenTime either via the WordPress.org plugin directory or upload the files to your server.
- Either Network Activate this plugin or activate it on a single site.
- 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; }`