{"id":81864,"date":"2018-02-22T20:33:49","date_gmt":"2018-02-22T20:33:49","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/blackbar\/"},"modified":"2025-12-01T22:51:47","modified_gmt":"2025-12-01T22:51:47","slug":"blackbar","status":"publish","type":"plugin","link":"https:\/\/bal.wordpress.org\/plugins\/blackbar\/","author":14625288,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"4.1.4","stable_tag":"4.1.4","tested":"6.9.4","requires":"6.1","requires_php":"7.4","requires_plugins":null,"header_name":"Black Bar","header_author":"Paul Ryley","header_description":"Blackbar is a development tool that displays executed queries, global variables, notices, warnings, theme templates, and a profiler.","assets_banners_color":"32373b","last_updated":"2025-12-01 22:51:47","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/ko-fi.com\/pryley","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/blackbar","header_author_uri":"https:\/\/profiles.wordpress.org\/pryley#content-plugins","rating":5,"author_block_rating":0,"active_installs":600,"downloads":38947,"num_ratings":9,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"geminilabs","date":"2018-02-23 02:35:41"},"1.1.0":{"tag":"1.1.0","author":"geminilabs","date":"2018-04-21 10:08:26"},"1.2.0":{"tag":"1.2.0","author":"geminilabs","date":"2018-04-22 15:48:32"},"2.0.0":{"tag":"2.0.0","author":"geminilabs","date":"2018-07-18 22:59:08"},"2.1.0":{"tag":"2.1.0","author":"geminilabs","date":"2018-12-12 09:52:19"},"2.1.1":{"tag":"2.1.1","author":"geminilabs","date":"2018-12-26 20:28:41"},"2.1.2":{"tag":"2.1.2","author":"geminilabs","date":"2019-01-18 18:19:48"},"2.1.3":{"tag":"2.1.3","author":"geminilabs","date":"2019-01-28 21:13:43"},"2.1.4":{"tag":"2.1.4","author":"geminilabs","date":"2019-02-15 18:28:10"},"2.2.0":{"tag":"2.2.0","author":"geminilabs","date":"2019-03-10 01:13:26"},"2.2.1":{"tag":"2.2.1","author":"geminilabs","date":"2020-05-08 17:20:13"},"3.0.0":{"tag":"3.0.0","author":"geminilabs","date":"2023-02-04 07:37:03"},"3.1.0":{"tag":"3.1.0","author":"geminilabs","date":"2023-02-05 07:42:54"},"4.0.0":{"tag":"4.0.0","author":"geminilabs","date":"2025-06-26 08:36:46"},"4.0.1":{"tag":"4.0.1","author":"geminilabs","date":"2025-06-26 08:36:46"},"4.0.2":{"tag":"4.0.2","author":"geminilabs","date":"2025-06-26 08:36:46"},"4.0.3":{"tag":"4.0.3","author":"geminilabs","date":"2025-06-26 08:36:46"},"4.1.0":{"tag":"4.1.0","author":"geminilabs","date":"2025-06-26 08:36:46"},"4.1.1":{"tag":"4.1.1","author":"geminilabs","date":"2025-06-26 08:36:46"},"4.1.2":{"tag":"4.1.2","author":"geminilabs","date":"2025-06-26 08:36:46"},"4.1.3":{"tag":"4.1.3","author":"geminilabs","date":"2025-06-26 08:36:46"},"4.1.4":{"tag":"4.1.4","author":"geminilabs","date":"2025-12-01 22:51:47"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":9},"assets_icons":{"icon-256x256.png":{"filename":"icon-256x256.png","revision":2864188,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2864188,"resolution":"1544x500","location":"assets","locale":""},"banner-1880x609.png":{"filename":"banner-1880x609.png","revision":2864188,"resolution":"1880x609","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2864188,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.1.0","1.2.0","2.0.0","2.1.0","2.1.1","2.1.2","2.1.3","2.1.4","2.2.0","2.2.1","3.0.0","3.1.0","4.0.0","4.0.1","4.0.2","4.0.3","4.1.0","4.1.1","4.1.2","4.1.3","4.1.4"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[94,12751,23021,734],"plugin_category":[59],"plugin_contributors":[125363,125364],"plugin_business_model":[],"class_list":["post-81864","plugin","type-plugin","status-publish","hentry","plugin_tags-debug","plugin_tags-debug-bar","plugin_tags-debugbar","plugin_tags-development","plugin_category-utilities-and-tools","plugin_contributors-geminilabs","plugin_contributors-pryley","plugin_committers-geminilabs"],"banners":{"banner":"https:\/\/ps.w.org\/blackbar\/assets\/banner-772x250.png?rev=2864188","banner_2x":"https:\/\/ps.w.org\/blackbar\/assets\/banner-1544x500.png?rev=2864188","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/blackbar\/assets\/icon-256x256.png?rev=2864188","icon_2x":"https:\/\/ps.w.org\/blackbar\/assets\/icon-256x256.png?rev=2864188","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Black Bar is an unobtrusive Debug Bar for WordPress developers. It collects and displays errors, executed SQL queries, slow actions and hooks, theme templates, global variables, and provides a profiler.<\/p>\n\n<p>How it helps you with development:<\/p>\n\n<ul>\n<li>Debug your code with the Console<\/li>\n<li>Inspect global variables (COOKIE, GET, POST, SERVER, SESSION, WP_Screen)<\/li>\n<li>Measure performance of your code with the Profiler<\/li>\n<li>View any PHP errors that occur when loading a page in the Console<\/li>\n<li>View executed MySQL queries along with execution time and backtrace<\/li>\n<li>View template files of the active theme in loaded order<\/li>\n<li>View the 50 slowest action and filter hooks along with callbacks ordered by priority<\/li>\n<\/ul>\n\n<!--section=installation-->\n<p>If you have never installed a WordPress plugin before, you can <a href=\"https:\/\/wordpress.org\/documentation\/article\/manage-plugins\/\">read instructions on how to do this here<\/a>.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id='how%20do%20i%20add%20entries%20to%20the%20console%3F'><h3>How do I add entries to the Console?<\/h3><\/dt>\n<dd><p>To add entries to the console, insert the following line of PHP anywhere in your code:<\/p>\n\n<pre><code>do_action('console', 'Enter something to debug here');\n<\/code><\/pre>\n\n<p>You can also add an optional log level like this:<\/p>\n\n<pre><code>do_action('console', 'Enter something to debug here', 'error');\n<\/code><\/pre>\n\n<p>The available log levels are: <code>debug<\/code>, <code>info<\/code>, <code>notice<\/code>, <code>warning<\/code>, <code>error<\/code>, <code>critical<\/code>, <code>alert<\/code>, and <code>emergency<\/code>.<\/p><\/dd>\n<dt id='how%20do%20i%20use%20the%20profiler%3F'><h3>How do I use the Profiler?<\/h3><\/dt>\n<dd><p>To use the profiler, insert the following lines of PHP <em>before<\/em> and <em>after<\/em> the code you are profiling:<\/p>\n\n<p><em>Before:<\/em><\/p>\n\n<pre><code>do_action('timer:start', 'Enter a description of what you are profiling here');\n<\/code><\/pre>\n\n<p><em>After:<\/em><\/p>\n\n<pre><code>do_action('timer:stop');\n<\/code><\/pre><\/dd>\n<dt id='how%20do%20i%20enable%20the%20plugin%20for%20non-administrators%3F'><h3>How do I enable the plugin for non-administrators?<\/h3><\/dt>\n<dd><p>By default, Black Bar is only visible to administrator users. To enable it for all logged-in users, use this code snippet:<\/p>\n\n<pre><code>add_filter('blackbar\/enabled', 'is_user_logged_in');\n<\/code><\/pre><\/dd>\n<dt id='how%20do%20i%20change%20the%20number%20of%20slowest%20hooks%20displayed%3F'><h3>How do I change the number of slowest hooks displayed?<\/h3><\/dt>\n<dd><p>By default, Black Bar displays the 50 slowest action\/filter hooks. To display all hooks, use this code snippet:<\/p>\n\n<pre><code>add_filter('blackbar\/hooks\/all', '__return_true');\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>4.1.4 (2024-05-08)<\/h4>\n\n<ul>\n<li>Added \"blackbar\/hooks\/all\" filter hook<\/li>\n<li>Added highlighting of major WordPress hooks<\/li>\n<li>Added support for static callables used for hook callbacks in Site Reviews<\/li>\n<li>Change minimum PHP version to 7.4<\/li>\n<li>Change minimum WordPress version to 6.1<\/li>\n<\/ul>\n\n<h4>4.1.3 (2024-05-08)<\/h4>\n\n<ul>\n<li>Added \"blackbar\/hooks\/all\" filter hook<\/li>\n<li>Added highlighting of major WordPress hooks<\/li>\n<li>Added support for static callables used for hook callbacks in Site Reviews<\/li>\n<li>Change minimum PHP version to 7.4<\/li>\n<li>Change minimum WordPress version to 6.1<\/li>\n<\/ul>\n\n<h4>4.1.2 (2024-05-08)<\/h4>\n\n<ul>\n<li>Added \"blackbar\/hooks\/all\" filter hook<\/li>\n<li>Added highlighting of major WordPress hooks<\/li>\n<li>Added support for static callables used for hook callbacks in Site Reviews<\/li>\n<li>Change minimum PHP version to 7.4<\/li>\n<li>Change minimum WordPress version to 6.1<\/li>\n<\/ul>\n\n<h4>4.1.1 (2024-05-08)<\/h4>\n\n<ul>\n<li>Added \"blackbar\/hooks\/all\" filter hook<\/li>\n<li>Added highlighting of major WordPress hooks<\/li>\n<li>Added support for static callables used for hook callbacks in Site Reviews<\/li>\n<li>Change minimum PHP version to 7.4<\/li>\n<li>Change minimum WordPress version to 6.1<\/li>\n<\/ul>\n\n<h4>4.1.0 (2024-05-08)<\/h4>\n\n<ul>\n<li>Added \"blackbar\/hooks\/all\" filter hook<\/li>\n<li>Added highlighting of major WordPress hooks<\/li>\n<li>Added support for static callables used for hook callbacks in Site Reviews<\/li>\n<li>Change minimum PHP version to 7.4<\/li>\n<li>Change minimum WordPress version to 6.1<\/li>\n<\/ul>\n\n<h4>4.0.3 (2023-10-11)<\/h4>\n\n<ul>\n<li>Fixed debugging of non-scalar values<\/li>\n<li>Fixed display of console values with an Unknown log level<\/li>\n<\/ul>\n\n<h4>4.0.2 (2023-09-18)<\/h4>\n\n<ul>\n<li>Fixed PHP 7 support<\/li>\n<li>Fixed console values which include HTML<\/li>\n<\/ul>\n\n<h4>4.0.1 (2023-03-04)<\/h4>\n\n<ul>\n<li>Added cache busting to enqueued assets<\/li>\n<li>Added console level filter counts<\/li>\n<li>Added HTTP_COOKIE value to INPUT_SERVER globals<\/li>\n<\/ul>\n\n<h4>4.0.0 (2023-02-13)<\/h4>\n\n<ul>\n<li>Added console level filters<\/li>\n<li>Added sorting to Action\/Filter Hooks<\/li>\n<li>Added syntax highlighting to console entries<\/li>\n<li>Added trace information to SQL queries<\/li>\n<li>Beautified SQL formating<\/li>\n<li>Changed Profiler usage (use the \"timer:start\" and \"timer:stop\" hooks)<\/li>\n<li>Improved Profiler, it is now also more accurate<\/li>\n<li>Refreshed UI<\/li>\n<li>Requires PHP &gt;= 7.3<\/li>\n<\/ul>\n\n<p><a href=\"https:\/\/raw.githubusercontent.com\/pryley\/blackbar\/main\/changelog.txt\">See changelog for all versions<\/a>.<\/p>","raw_excerpt":"Black Bar is an unobtrusive Debug Bar for WordPress developers that attaches itself to the bottom of the browser window.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/81864","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=81864"}],"author":[{"embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/geminilabs"}],"wp:attachment":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=81864"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=81864"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=81864"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=81864"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=81864"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=81864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}