# jetpack/16.3-a.5/3rd-party/debug-bar.php

Jetpack – WP Security, Backup, Speed, &amp; Growth, version 16.3-a.5. 29 lines.

- Page: https://pluginprobe.com/plugins/jetpack/16.3-a.5/code/3rd-party/debug-bar.php
- Raw: https://pluginprobe.com/plugins/jetpack/16.3-a.5/raw/3rd-party/debug-bar.php
- Modified: 2025-11-24T17:00:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/jetpack/16.3-a.5/code/3rd-party/debug-bar.php#L10-L20`.

```php
<?php
/**
 * 3rd Party integration for Debug Bar.
 *
 * @package automattic/jetpack
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit( 0 );
}

/**
 * Checks if the search module is active, and if so, will initialize the singleton instance
 * of Jetpack_Search_Debug_Bar and add it to the array of debug bar panels.
 *
 * @param array $panels The array of debug bar panels.
 * @return array $panel The array of debug bar panels with our added panel.
 */
function init_jetpack_search_debug_bar( $panels ) {
	if ( ! Jetpack::is_module_active( 'search' ) ) {
		return $panels;
	}

	require_once __DIR__ . '/debug-bar/class-jetpack-search-debug-bar.php';
	$panels[] = Jetpack_Search_Debug_Bar::instance();
	return $panels;
}
add_filter( 'debug_bar_panels', 'init_jetpack_search_debug_bar' );

```
