File Manager / wp-content Search Upload New Item Settings File "db5.php" Full path: /home1/epichome/public_html/wp-content/db5.php File size: 60.67 B (60.67 KB bytes) MIME-type: text/x-php Charset: utf-8 Download Open Edit Advanced Editor Back
<?php
namespace MercadoPago\Woocommerce;
if (!defined('ABSPATH')) {
exit;
}
class Startup
{
/**
* Verify if plugin has its packages and autoloader file
*
* @return bool
*/
public static function available(): bool
{
return self::haveAutoload();
}
/**
* Check's if autoload file is present and is readable
*
* @return bool
*/
protected static function haveAutoload(): bool
{
$file = dirname(__DIR__) . '/vendor/autoload.php';
if (is_file($file) && is_readable($file)) {
return true;
}
add_action('admin_notices', fn() => $file && include __DIR__ . '/../templates/admin/notices/miss-autoload.php');
return false;
}
}
