includes/Core/class-loader-map.php
Central loader map — single owner for \”which file provides which class\”.
Class Loader_Map
Class Loader_Map
final class Loader_Mappublicstatic base_dir()
public static function base_dir(): stringBase directory for plugin class files (with trailing slash).
Return: string — `WPPO_PLUGIN_PATH . \’includes/\’`, or \’\’ when the constant is undefined.
publicstatic eager_files()
public static function eager_files(): arrayFiles always eager-loaded by `Main::includes()`, in load order.
Return: string[] — Relative paths under `includes/`, in load order.
publicstatic litespeed_stack_files()
public static function litespeed_stack_files(): arrayLiteSpeed-only crawler + ESI stack files (conditionally eager-loaded).
Return: string[] — Relative paths under `includes/`, in load order.
publicstatic fallback_map()
public static function fallback_map(): arrayLazy fallback short-name-to-file map for `spl_autoload_register`.
Return: array<string,string> — Short class name => relative path under `includes/`.
publicstatic allowed_dirs()
public static function allowed_dirs(): arrayCanonical single-level subdirectories under `includes/`.
Return: string[].
publicstatic file_path()
public static function file_path(string $relative_file): stringAbsolute path for a relative file under `includes/`. Parameter Type Default Description $relative_filestring— Relative path (e.g. `Cache/class-cache.php`).
Return: string — Absolute path, or \’\’ when `WPPO_PLUGIN_PATH` is undefined or input is invalid.
publicstatic path_for()
public static function path_for(string $class_name): ?stringAbsolute path for a plugin short class name, or null when unknown. Parameter Type Default Description $class_namestring— Short, single-namespace, or fully-qualified class name.
Return: string|null — Absolute file path, or null when unmapped/undefined base.
publicstatic cli_file()
public static function cli_file(): stringAbsolute path of the WP-CLI command file.
Return: string — Absolute path, or \’\’ when `WPPO_PLUGIN_PATH` is undefined.