Sin descripción

License.php 430B

123456789101112131415161718192021222324
  1. <?php
  2. namespace MailPoet\Util\License;
  3. if (!defined('ABSPATH')) exit;
  4. class License {
  5. const FREE_PREMIUM_SUBSCRIBERS_LIMIT = 1000;
  6. public static function getLicense($license = false) {
  7. if (!$license) {
  8. $license = defined('MAILPOET_PREMIUM_LICENSE') ?
  9. MAILPOET_PREMIUM_LICENSE :
  10. false;
  11. }
  12. return $license;
  13. }
  14. public function hasLicense(): bool {
  15. return (bool)self::getLicense();
  16. }
  17. }