Mô tả
- 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
Cài đặt
- Upload the plugin to the
/wp-content/plugins/directory. - Activate the plugin through the Plugins menu in WordPress.
- Insert the hook
do_action( 'logger', $data );in your code. - Go to Tools > WP Logger.
Đánh giá
23 Tháng 4, 2025
Thanks for picking it up again!
10 Tháng 2, 2021
Thanks, guys, exactly what I needed, and it works great!
4 Tháng 9, 2018
Thx for this plugin, the logging very important for us, and we happy to use your plugin with our team.
Người đóng góp & Lập trình viên
“WP Logger” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.
Những người đóng gópDịch “WP Logger” sang ngôn ngữ của bạn.
Muốn tham gia phát triển?
Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.
Nhật ký thay đổi
2.4
- Fix Uncaught Exception: Serialization of ‘Closure’ is not allowed when creating button with closure callback.
2.3
- Custom button adding function introduced.
- PHP min version changed to 7.1.
2.2.1
- Nonce verification for ajax queries.
- PayPal link updated.
- Plugin tags updated.
2.2
- Clear log vulnerability fixed.
2.1
- The output of the data got escaped.
2.0.2
- Suppress DB errors while the data insert
2.0.1
- bug fixed
2.0
- Logged data was moved to custom table in DB
- WPDL_DISPLAY_LIMIT
- Hidding/showing rows
1.4
- Added types of data
1.2
- Init commit
