class-wpseo-features.php 486 Bytes
Newer Older
imac's avatar
imac committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
<?php
/**
 * @package    WPSEO
 * @subpackage Internal
 */

/**
 * Class containing method for WPSEO Features.
 */
class WPSEO_Features {

	/**
	 * Checks if the premium constant exists to make sure if plugin is the premium one.
	 *
	 * @return bool
	 */
	public function is_premium() {
		return ( defined( 'WPSEO_PREMIUM_FILE' ) );
	}

	/**
	 * Checks if using the free version of the plugin.
	 *
	 * @return bool
	 */
	public function is_free() {
		return ! $this->is_premium();
	}
}