- 正在使用
- 300+
- 评分
- 5.0 / 5
- 累计下载
- 7,809
- 最近更新
- 2025年12月1日
3 条评价需要 WordPress 3.5+已测试到 6.8.13PHP 7.1+
截图
- 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
