[WordPress] 外掛分享: Admin Bar Tools

首頁外掛目錄 › Admin Bar Tools
WordPress 外掛 Admin Bar Tools 的封面圖片
400+
安裝啟用
★★★★
4.8/5 分(8 則評價)
1885 天前
最後更新
問題解決
WordPress 4.7+ PHP 5.6+ v4.0 上架:2012-06-15

內容簡介

這個外掛會在管理列新增一個新的選項卡,提供簡單但實用的提示和工具。

顯示頁面中使用的查詢數量及生成該頁面所需的時間。
顯示 PHP 記憶體使用量和 PHP 記憶體限制(常數 WP_MEMORY_LIMIT 和 WP_MAX_MEMORY_LIMIT)。
顯示 PHP 和 WP 版本碼。
顯示 WP_DEBUG、SCRIPT_DEBUG、WP_DEBUG_LOG、WP_DEBUG_DISPLAY 和錯誤報告的值。

在您的網站前端:

列出當前頁面使用的模板和所有模板部件(使用 get_template_part() 添加的模板部件)。與 WooCommerce 的範本相容。
$wp_query:這將打開一個燈箱,顯示 $wp_query 的內容。點擊標題以重新加載值,點擊燈箱外部以關閉它。

在您的網站管理後台:

管理後台的掛鉤:列出一些常用的掛鉤(如 admin_init)。行右側的指示器顯示掛鉤被回調觸發的次數。一個「P」表示掛鉤有一個參數:將鼠標懸停在其上以獲取更多詳細信息。單擊掛鉤(在其文本上)自動選擇其代碼,例如:單擊 admin_init 選擇 add_action( 'admin_init', '' );。
$current_screen:顯示該對象的 4 個屬性的值:id、base、parent_base、parent_file。
$...now:顯示著名變數 $pagenow、$typenow 和 $taxnow 的值。
在用戶個人資料頁面上,$userdata:這將打開一個燈箱,顯示用戶的數據。

您可以決定誰可以使用此插件(在個人資料頁面上進行所有設置)。這樣,插件的項目將不會顯示給其他用戶(例如您的客戶)。
此外,會出現一個新的菜單項目 Code Tester。您可以在那裡對您的代碼進行一些測試。

外掛標籤

開發者團隊

⬇ 下載最新版 (v4.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Admin Bar Tools」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

The plugin adds a new tab in your admin bar with simple but useful indications and tools.

Displays the number of queries in your page and the amount of time to generate the page.
Displays the php memory usage and php memory limits (constants WP_MEMORY_LIMIT and WP_MAX_MEMORY_LIMIT).
displays the php version and WP version.
Displays WP_DEBUG, SCRIPT_DEBUG, WP_DEBUG_LOG, WP_DEBUG_DISPLAY, and error reporting values.

In your site front-end:

Lists the template and all template parts used in the current page (template parts added with get_template_part()). Compatible with WooCommerce’s templates.
$wp_query: this will open a lightbox displaying the content of $wp_query. Click the lightbox title to reload the value, click outside the lightbox to close it.

In your site administration:

Admin hooks: lists some oftenly used hooks (like admin_init). The indicator to the right of the line tells you how many times the hook has been triggered by a callback. A “P” means the hook has a parameter: hover it for more details. Click a hook (on its text) to auto-select its code, for example: click admin_init to select add_action( 'admin_init', '' );.
$current_screen: displays the value of 4 properties of this object: id, base, parent_base, parent_file.
$...now: displays the value of the well-known variables $pagenow, $typenow, and $taxnow.
On a user profile page, $userdata: : this will open a lightbox displaying the user’s data.

You can decide who’s gonna use this plugin (go to your profile page for all the settings). This way, the plugin’s items won’t show up to other users (your client for example).
Also, a new menu item Code Tester will appear. There you are able to do some tests with your code.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon