Automattic\WooCommerce
Autoloader::init()
Require the autoloader and return the result.
If the autoloader is not present, let's log the failure and display a nice admin notice.
Метод класса: Autoloader{}
Хуков нет.
Возвращает
true|false
.
Использование
$result = Autoloader::init();
Код Autoloader::init() Autoloader::init WC 9.5.1
public static function init() { $autoloader = dirname( __DIR__ ) . '/vendor/autoload_packages.php'; if ( ! is_readable( $autoloader ) ) { self::missing_autoloader(); return false; } $autoloader_result = require $autoloader; if ( ! $autoloader_result ) { return false; } return $autoloader_result; }