HEX
Server: LiteSpeed
System: Linux s3.sitechai.com 4.18.0-553.51.1.lve.1.el8.x86_64 #1 SMP Wed May 14 14:34:57 UTC 2025 x86_64
User: workzeni (2217)
PHP: 8.1.32
Disabled: mail, show_source, system, shell_exec, passthru, exec, eval, shell
Upload Files
File: /home/workzeni/ecom.workzenix.com/wp-content/plugins/yoast-test-helper/src/query-monitor.php
<?php

namespace Yoast\WP\Test_Helper;

/**
 * Class to add a Yoast SEO tab to Query Monitor.
 */
class Query_Monitor implements Integration {

	/**
	 * Registers our menu item and output function.
	 */
	public function add_hooks() {
		\add_filter( 'qm/output/panel_menus', [ $this, 'add_menu_panel' ], 80 );
		\add_filter( 'qm/outputter/html', [ $this, 'output' ], 12, 1 );
	}

	/**
	 * Adds the panel item.
	 *
	 * @param array $menu Array of menu items.
	 *
	 * @return array Array of menu items.
	 */
	public function add_menu_panel( array $menu ) {
		$menu['yoast-seo'] = [
			'id'    => 'yoast-seo',
			'title' => 'Yoast SEO',
			'href'  => '#qm-yoast-seo',
		];

		return $menu;
	}

	/**
	 * Links the output to our output class.
	 *
	 * @param array $output Array with output for each tab.
	 *
	 * @return array Array with output for each tab.
	 */
	public function output( array $output ) {
		$output['yoast-seo'] = new Query_Monitor_Output();

		return $output;
	}
}