use composer autoloader

This commit is contained in:
David Stone
2025-02-02 02:21:23 -07:00
parent f59debc4a6
commit 35be51daa7
5 changed files with 56 additions and 120 deletions

View File

@ -37,25 +37,11 @@ class Autoloader {
* Initializes our custom autoloader
*
* @since 2.0.0
* @deprecated 2.3.5
* @return void
*/
public static function init() {
if (!static::$instance instanceof static) {
static::$instance = new WP_Namespace_Autoloader(array(
'directory' => dirname(dirname(__FILE__)),
'namespace_prefix' => 'WP_Ultimo',
'classes_dir' => 'inc',
'lowercase' => array('file', 'folders'),
'underscore_to_hyphen' => array('file', 'folders'),
'debug' => Autoloader::is_debug(),
));
static::$instance->init();
} // end if;
// do nothing now. Composer autoloader does the work.
} // end init;
/**