{"id":90816,"date":"2018-09-02T05:20:23","date_gmt":"2018-09-02T05:20:23","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/wp-data-logger\/"},"modified":"2025-12-01T10:42:47","modified_gmt":"2025-12-01T10:42:47","slug":"wp-data-logger","status":"publish","type":"plugin","link":"https:\/\/ast.wordpress.org\/plugins\/wp-data-logger\/","author":8509166,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.4","stable_tag":"2.4","tested":"6.8.5","requires":"3.5","requires_php":"7.1","requires_plugins":null,"header_name":"WP Data Logger","header_author":"WPCraft & iTRON","header_description":"Logging and debug events and vars on site. For adding data in log use the hook: <br><code>do_action( 'logger', $data );<\/code>","assets_banners_color":"","last_updated":"2025-12-01 10:42:47","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.me\/igortron","header_plugin_uri":"","header_author_uri":"","rating":5,"author_block_rating":0,"active_installs":300,"downloads":6679,"num_ratings":3,"support_threads":1,"support_threads_resolved":1,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"1.3":{"tag":"1.3","author":"hokku","date":"2019-04-17 19:01:16"},"1.4":{"tag":"1.4","author":"hokku","date":"2019-11-23 13:24:52"},"2.0":{"tag":"2.0","author":"hokku","date":"2019-11-23 15:12:03"},"2.0.1":{"tag":"2.0.1","author":"hokku","date":"2019-11-26 14:10:39"},"2.0.2":{"tag":"2.0.2","author":"hokku","date":"2020-09-20 09:23:28"},"2.1":{"tag":"2.1","author":"hokku","date":"2024-04-04 08:18:05"},"2.2":{"tag":"2.2","author":"hokku","date":"2024-12-19 15:41:56"},"2.2.1":{"tag":"2.2.1","author":"hokku","date":"2025-04-10 18:23:31"},"2.3":{"tag":"2.3","author":"hokku","date":"2025-12-01 10:42:47"},"2.4":{"tag":"2.4","author":"hokku","date":"2025-12-01 10:42:47"}},"upgrade_notice":{"2.0":"<p>During update will be lost all logged data. Please, make sure this won\\&#039;t hurt you<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":3},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":1934745,"resolution":"128x128","location":"assets","locale":""}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.3","1.4","2.0","2.0.1","2.0.2","2.1","2.2","2.2.1","2.3","2.4"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":1934745,"resolution":"1","location":"assets","locale":""}},"screenshots":{"1":"Logger page"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[3524,94,3020,908,8537],"plugin_category":[59],"plugin_contributors":[85944,131199],"plugin_business_model":[],"class_list":["post-90816","plugin","type-plugin","status-publish","hentry","plugin_tags-data","plugin_tags-debug","plugin_tags-develop","plugin_tags-log","plugin_tags-logger","plugin_category-utilities-and-tools","plugin_contributors-casepress","plugin_contributors-hokku","plugin_committers-hokku"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/wp-data-logger\/assets\/icon-128x128.png?rev=1934745","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/wp-data-logger\/assets\/screenshot-1.png?rev=1934745","caption":"Logger page"}],"raw_content":"<!--section=description-->\n<ol>\n<li>Insert the hook <code>do_action( 'logger', $data );<\/code> in your code<\/li>\n<li>Go to <strong>Tools &gt; WP Logger<\/strong><\/li>\n<\/ol>\n\n<h4>Additional buttons<\/h4>\n\n<p>Use the <code>wpdl_add_button( string $name, callable $clb, string $btnClass = '' )<\/code> function to add a button to the logger page.<\/p>\n\n<ul>\n<li><strong>$name<\/strong> text for the button;<\/li>\n<li><strong>$clb<\/strong> callback function;<\/li>\n<li><strong>$btnClass<\/strong> class for the button (optional).<\/li>\n<\/ul>\n\n<p>Click on the button to execute the function via WP-AJAX. If an Exception or Error occurs, it will be logged as well.<\/p>\n\n<h4>Hooks:<\/h4>\n\n<ul>\n<li>wp_logger_button_panel<\/li>\n<li>wp_logger_inline_css<\/li>\n<li>wp_logger_inline_js<\/li>\n<li>wp_data_logger_print_data<\/li>\n<\/ul>\n\n<h4>Available constants:<\/h4>\n\n<ul>\n<li>WPDL_DISPLAY_LIMIT<\/li>\n<\/ul>\n\n<p><a href=\"https:\/\/github.com\/hokoo\/logger-u7\">GitHub<\/a><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the <strong>Plugins<\/strong> menu in WordPress.<\/li>\n<li>Insert the hook <code>do_action( 'logger', $data );<\/code> in your code.<\/li>\n<li>Go to <strong>Tools &gt; WP Logger<\/strong>.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>2.4<\/h4>\n\n<ul>\n<li>Fix Uncaught Exception: Serialization of 'Closure' is not allowed when creating button with closure callback.<\/li>\n<\/ul>\n\n<h4>2.3<\/h4>\n\n<ul>\n<li>Custom button adding function introduced.<\/li>\n<li>PHP min version changed to 7.1.<\/li>\n<\/ul>\n\n<h4>2.2.1<\/h4>\n\n<ul>\n<li>Nonce verification for ajax queries.<\/li>\n<li>PayPal link updated.<\/li>\n<li>Plugin tags updated.<\/li>\n<\/ul>\n\n<h4>2.2<\/h4>\n\n<ul>\n<li>Clear log vulnerability fixed.<\/li>\n<\/ul>\n\n<h4>2.1<\/h4>\n\n<ul>\n<li>The output of the data got escaped.<\/li>\n<\/ul>\n\n<h4>2.0.2<\/h4>\n\n<ul>\n<li>Suppress DB errors while the data insert<\/li>\n<\/ul>\n\n<h4>2.0.1<\/h4>\n\n<ul>\n<li>bug fixed<\/li>\n<\/ul>\n\n<h4>2.0<\/h4>\n\n<ul>\n<li>Logged data was moved to custom table in DB<\/li>\n<li>WPDL_DISPLAY_LIMIT<\/li>\n<li>Hidding\/showing rows<\/li>\n<\/ul>\n\n<h4>1.4<\/h4>\n\n<ul>\n<li>Added types of data<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Init commit<\/li>\n<\/ul>","raw_excerpt":"Logging vars and events for fast debug WordPress site.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/90816","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=90816"}],"author":[{"embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/hokku"}],"wp:attachment":[{"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=90816"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=90816"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=90816"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=90816"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=90816"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=90816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}