HEX
Server: LiteSpeed
System: Linux server318.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User: sahadove (2893)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /home/sahadove/public_html/wp-content/plugins/jetpack/3rd-party/debug-bar.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' );