Files
wp-multisite-waas/inc/class-autoloader.php
2025-02-02 02:21:23 -07:00

60 lines
1011 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() {} // end __construct;
/**
* Initializes our custom autoloader
*
* @since 2.0.0
* @deprecated 2.3.5
* @return void
*/
public static function init() {
// do nothing now. Composer autoloader does the work.
} // end init;
/**
* Checks for unit tests and WP_ULTIMO_DEBUG.
*
* @since 2.0.0
* @return boolean
*/
public static function is_debug() {
return false; // return wu_is_debug();
} // end is_debug;
} // end class Autoloader;