HEX
Server: Apache/2.4.65 (Debian)
System: Linux 88f31f35b0b8 6.1.0-38-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.147-1 (2025-08-02) x86_64
User: www-data (33)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //proc/self/cwd/wp-content/plugins/wptelegram/autoload.php
<?php
/**
 * Autoloader
 *
 * @link      https://wpsocio.com
 * @since     3.0.0
 *
 * @package WPTelegram
 */

spl_autoload_register( 'wptelegram_autoloader' );

/**
 * Autoloader.
 *
 * @param string $class_name The requested classname.
 * @return void
 */
function wptelegram_autoloader( $class_name ) {

	$namespace = 'WPTelegram\Core';

	if ( 0 !== strpos( $class_name, $namespace ) ) {
		return;
	}

	$class_name = str_replace( $namespace, '', $class_name );
	$class_name = str_replace( '\\', DIRECTORY_SEPARATOR, $class_name );

	$path = WPTELEGRAM_DIR . $class_name . '.php';

	include_once $path;
}