{"id":30060,"date":"2014-06-13T03:46:29","date_gmt":"2014-06-13T03:46:29","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/debug-bar-custom-info\/"},"modified":"2014-07-01T06:28:25","modified_gmt":"2014-07-01T06:28:25","slug":"debug-bar-custom-info","status":"publish","type":"plugin","link":"https:\/\/lmo.wordpress.org\/plugins\/debug-bar-custom-info\/","author":13219022,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.2","stable_tag":"1.0.2","tested":"3.9.40","requires":"3.8","requires_php":"","requires_plugins":"","header_name":"Debug Bar Custom Info","header_author":"FitWP","header_description":"","assets_banners_color":"","last_updated":"2014-07-01 06:28:25","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.deluxeblogtips.com\/donate","header_plugin_uri":"http:\/\/fitwp.com","header_author_uri":"http:\/\/fitwp.com","rating":5,"author_block_rating":0,"active_installs":10,"downloads":2915,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.0.1","1.0.2"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1573810","resolution":"1","location":"plugin"}},"screenshots":{"1":"Custom Info Panel"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[94],"plugin_category":[59],"plugin_contributors":[77870,77869],"plugin_business_model":[],"class_list":["post-30060","plugin","type-plugin","status-publish","hentry","plugin_tags-debug","plugin_category-utilities-and-tools","plugin_contributors-fitwp","plugin_contributors-rilwis","plugin_committers-fitwp"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/debug-bar-custom-info.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/debug-bar-custom-info\/trunk\/screenshot-1.png?rev=1573810","caption":"Custom Info Panel"}],"raw_content":"<!--section=description-->\n<p>This plugin adds an extra panel to <a href=\"https:\/\/wordpress.org\/plugins\/debug-bar\/\">Debug Bar<\/a> plugin that allows developers to output custom debug info.<\/p>\n\n<p>Developers can log any variable to see its value when running PHP in WordPress. This helps developers see the real-time values of variables. It works exactly like <code>console.log()<\/code> in browsers.<\/p>\n\n<h4>How to add custom debug info<\/h4>\n\n<p>Add the following code wherever you want to debug a variable:<\/p>\n\n<pre><code>do_action( 'add_debug_info', $var, $label );\n<\/code><\/pre>\n\n<p>where <code>$var<\/code> can has any data type.<\/p>\n\n<ul>\n<li>If <code>$var<\/code> is a string or any simple value, the value is outputted directly.<\/li>\n<li>If <code>$var<\/code> is an array or object, the output is the same as <code>print_r( $var )<\/code>.<\/li>\n<\/ul>\n\n<p>And <code>$label<\/code> is the description label (optional).<\/p>\n\n<h4>How to view debug info<\/h4>\n\n<ul>\n<li>Click on <strong>Debug Bar<\/strong> in the top right of the admin bar<\/li>\n<li>Select <strong>Custom Info<\/strong> panel (see <a href=\"https:\/\/wordpress.org\/plugins\/debug-bar-custom-info\/screenshots\/\">screenshots<\/a>)<\/li>\n<\/ul>\n\n<p><a href=\"http:\/\/fitwp.com\/plugins\/debug-bar-custom-info\/\">Project Homepage<\/a> | <a href=\"https:\/\/github.com\/fitwp\/debug-bar-custom-info\/issues\">Report Bugs<\/a> | <a href=\"http:\/\/www.deluxeblogtips.com\/donate\/\">Donate<\/a><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Unzip the download package<\/li>\n<li>Upload <code>debug-bar-custom-info<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Add 2nd param \"label\" to <code>do_action<\/code><\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Use <code>do_action<\/code> to prevent fatal error when plugin files is not loaded<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>First release<\/li>\n<\/ul>","raw_excerpt":"This plugin adds an extra panel to Debug Bar plugin that allows developers to output custom debug info.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/30060","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=30060"}],"author":[{"embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/fitwp"}],"wp:attachment":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=30060"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=30060"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=30060"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=30060"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=30060"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=30060"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}