Files
wp-multisite-waas/inc/class-autoloader.php
2025-02-09 12:30:02 -07:00

57 lines
914 B
PHP

<?php
/**
* WP Multisite WaaS custom Autoloader.
*
* @package WP_Ultimo
* @subpackage Autoloader
* @since 2.0.0
*/
namespace WP_Ultimo;
use Pablo_Pacheco\WP_Namespace_Autoloader\WP_Namespace_Autoloader;
// Exit if accessed directly
defined('ABSPATH') || exit;
/**
* Auto-loads class files inside the inc folder.
*
* @since 2.0.0
*/
class Autoloader {
/**
* Makes sure we are only using one instance of the class
*
* @var object
*/
public static $instance;
/**
* Static-only class.
*/
private function __construct() {}
/**
* Initializes our custom autoloader
*
* @since 2.0.0
* @deprecated 2.3.5
* @return void
*/
public static function init(): void {
// do nothing now. Composer autoloader does the work.
}
/**
* Checks for unit tests and WP_ULTIMO_DEBUG.
*
* @since 2.0.0
* @return boolean
*/
public static function is_debug() {
return false;
}
}