/inc/class-wpseo-features.php

  1. <?php 
  2. /** 
  3. * @package WPSEO 
  4. * @subpackage Internal 
  5. */ 
  6.  
  7. /** 
  8. * Class containing method for WPSEO Features. 
  9. */ 
  10. class WPSEO_Features { 
  11.  
  12. /** 
  13. * Checks if the premium constant exists to make sure if plugin is the premium one. 
  14. * 
  15. * @return bool 
  16. */ 
  17. public function is_premium() { 
  18. return ( defined( 'WPSEO_PREMIUM_FILE' ) ); 
  19.  
  20. /** 
  21. * Checks if using the free version of the plugin. 
  22. * 
  23. * @return bool 
  24. */ 
  25. public function is_free() { 
  26. return ! $this->is_premium(); 
.