lookin(); spl_autoload_register( array($this, 'load') ); } public function lookin() { self::$paths[] = get_template_directory(). '/setup/'; } public function load($class) { if( strpos( $class, self::$classPrefix ) !== false ) { if(is_array(self::$paths)) { foreach (self::$paths as $path) { if( file_exists($path.$class.'.php') ) { include $path.$class.'.php'; } } } } } } new BSLoader(); ?>