Linux 软件免费装
Banner图

Debug Bar Screen Info

开发者 bradvin
jrf
更新时间 2016年4月28日 18:26
PHP版本: 3.5.1 及以上
WordPress版本: 4.5
版权: GPLv2 or later
版权网址: 版权信息

标签

debug debug bar screen id get_current_screen WP_Screen Screen Object

下载

1.0.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5

详情介绍:

This plugin is an add-on for Debug Bar. You must install and activate Debug Bar first, for this plugin to work.
Adds a new tab to the debug bar which shows all the screen info for the current page in the admin backend. Please note that this plugin should be used solely for debugging and/or on a development environment and is not intended for use on a production site. If you like this plugin, please rate and/or review it. If you have ideas on how to make the plugin even better or if you have found any bugs, please report these in the Support Forum or in the GitHub repository.

安装:

  1. Install Debug Bar if not already installed (https://wordpress.org/plugins/debug-bar/)
  2. Extract the .zip file for this plugin and upload its contents to the /wp-content/plugins/ directory. Alternatively, you can install directly from the Plugin directory within your WordPress Install.
  3. 通过WordPress的“插件”菜单激活插件。

屏幕截图:

  • New Screen Info Panel

升级注意事项:

1.1.3
  • Upgrade highly recommended - multi-plugin compatibility issue
1.1.1
  • Upgrade highly recommended - multi-plugin compatibility issue
1.1.0
  • Merge with Jrf's version of the same

常见问题:

Can it be used on live site ?

This plugin is only meant to be used for development purposes, but shouldn't cause any issues if run on a production site.

Why should I be interested in the screen info ?

Because you can use it to conditionally include files, add help tabs, enqueue scripts and styles etc for the admin pages. Lean loading FTW ;-)

Where does the screen info come from ?

The screen info is retrieved via the get_current_screen() function and contains a WP_Screen object.

Role of WP_Screen This is a concrete class that is instantiated in the WordPress $screen global. It is primarily used to create and customize WordPress admin screens (as of WordPress 3.3). More information in the Codex

Why won't the plugin activate ?

Have you read what it says in the beautiful red bar at the top of your plugins page ? As it says there, the Debug Bar plugin needs to be active for this plugin to work. If the Debug Bar plugin is not active, this plugin will automatically de-activate itself.

更新日志:

1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.0