| Server IP : 145.239.37.162 / Your IP : 216.73.217.46 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/verseaa/www/wp-content/plugins/query-monitor/classes/ |
Upload File : |
<?php declare(strict_types = 1);
/**
* Class representing an unknown component.
*
* @package query-monitor
*/
final class QM_Component_Unknown extends QM_Component {
public function get_name(): string {
$name = __( 'Unknown', 'query-monitor' );
$type = $this->type;
/**
* Filters the user-facing name to display for a custom or unknown component.
*
* The dynamic portion of the hook name, `$type`, refers to the component identifier.
*
* See also the corresponding filters:
*
* - `qm/component_dirs`
* - `qm/component_type/{$type}`
* - `qm/component_context/{$type}`
*
* @since 3.6.0
*
* @param string $name The component name.
* @param string $file The full file path for the file within the component.
*/
$name = apply_filters( "qm/component_name/{$type}", $name, $this->file );
return $name;
}
}