[WordPress] 外掛分享: WP Logger

首頁外掛目錄 › WP Logger
300+
安裝啟用
★★★★★
5/5 分(3 則評價)
107 天前
最後更新
問題解決
WordPress 3.5+ PHP 7.1+ v2.4 上架:2018-09-01

內容簡介

這是一個用來除錯網站和應用程式的日誌變數和事件。

在您的代碼中插入 do_action( ‘logger’, $data ); hook
到工具 > 日誌

可用的其他 hook:

wp_logger_button_panel
wp_logger_inline_css
wp_logger_inline_js
wp_data_logger_print_data

可用的常數:

WPDL_DISPLAY_LIMIT

GitHub

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.4) 或搜尋安裝

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

原文外掛簡介

Insert the hook do_action( 'logger', $data ); in your code
Go to Tools > WP Logger

Additional buttons
Use the wpdl_add_button( string $name, callable $clb, string $btnClass = '' ) function to add a button to the logger page.

$name text for the button;
$clb callback function;
$btnClass class for the button (optional).

Click on the button to execute the function via WP-AJAX. If an Exception or Error occurs, it will be logged as well.
Hooks:

wp_logger_button_panel
wp_logger_inline_css
wp_logger_inline_js
wp_data_logger_print_data

Available constants:

WPDL_DISPLAY_LIMIT

GitHub

延伸相關外掛

文章
Filter
Apply Filters
Mastodon