Logger vars and event for debug site and apps
| Author: | iTRON (profile at wordpress.org) |
| WordPress version required: | 3.5 |
| WordPress version tested: | 6.8.3 |
| Plugin version: | 2.4 |
| Added to WordPress repository: | 02-09-2018 |
| Last updated: | 01-12-2025 |
| Rating, %: | 100 |
| Rated by: | 3 |
| Plugin URI: | |
| Total downloads: | 6 635 |
| Active installs: | 300+ |
![]() Click to start download |
|
- 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
Screenshots
ChangeLog

