Autoloader::init()

Require the autoloader and return the result.


Description Description

If the autoloader is not present, let’s log the failure and display a nice admin notice.


Return Return

(boolean)


Top ↑

Source Source

File: src/Autoloader.php

	public static function init() {
		$autoloader = dirname( __DIR__ ) . '/vendor/autoload_packages.php';

		if ( ! is_readable( $autoloader ) ) {
			self::missing_autoloader();
			return false;
		}

		return require $autoloader;
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.