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: /var/www/html/wp-content/plugins/aaa-option-optimizer/src/autoload.php
<?php
/**
 * Autoload PHP classes for the plugin.
 *
 * @package Progress_Planner\OptionOptimizer
 */

spl_autoload_register(
	function ( $class_name ) {
		$prefix = 'Progress_Planner\\OptionOptimizer\\';

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

		$class_name = \str_replace( $prefix, '', $class_name );

		$file = AAA_OPTION_OPTIMIZER_DIR . '/src/class-' . \str_replace( '_', '-', \strtolower( $class_name ) ) . '.php';

		if ( \file_exists( $file ) ) {
			require_once $file;
		}
	}
);