Heray-Was-Here
Server : Apache
System : Linux mail.lomejor.cr 6.8.0-1059-azure #65~22.04.1-Ubuntu SMP Thu May 28 16:59:19 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.2.31
Disable Function : NONE
Directory :  /var/www/outlet/wp-content/plugins/email-log/include/Addon/License/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/outlet/wp-content/plugins/email-log/include/Addon/License/BundleLicense.php
<?php namespace EmailLog\Addon\License;

defined( 'ABSPATH' ) || exit; // Exit if accessed directly.

/**
 * BundleLicense Object.
 * There can be only one BundleLicence for all the add-ons.
 *
 * @since 2.0.0
 */
class BundleLicense extends BaseLicense {

	/**
	 * For Bundle the add-on name is hardcoded.
	 *
	 * @var string Add-on name.
	 */
	protected $addon_name = 'Email Log Bundle';

	public function get_renewal_link() {
		$renewal_link = parent::get_renewal_link();

		return $renewal_link . '&utm_content=BL';
	}

	/**
	 * Return bundle license key.
	 *
	 * @return string Bundle License key, if found.
	 */
	public function get_license_key() {
		if ( empty( $this->license_data ) ) {
			return parent::get_license_key();
		}

		return $this->license_data->bundle_license_key;
	}

	/**
	 * The option name in which the bundle license data will be stored.
	 *
	 * @return string Option name.
	 */
	protected function get_option_name() {
		return 'el_bundle_license';
	}

	/**
	 * Get the license key of an add-on from Bundle.
	 *
	 * @param string $addon_name Add-on name.
	 *
	 * @return bool|string False if no license key is found, otherwise license key.
	 */
	public function get_addon_license_key( $addon_name ) {
		if ( empty( $this->license_data ) ) {
			return false;
		}

		if ( ! isset( $this->license_data->bundled_licenses->{$addon_name} ) ) {
			return false;
		}

		return $this->license_data->bundled_licenses->{$addon_name}->license_key;
	}

	/**
	 * Is the bundle license a lifetime license.
	 *
	 * @since 2.4.1
	 *
	 * @return bool True if it is a lifetime license, False otherwise.
	 */
	public function is_lifetime_license() {
		if ( empty( $this->license_data ) || ! isset( $this->license_data->expires ) ) {
			return false;
		}

		return ( false === $this->license_data->expires );
	}
}

Hry