class-wpseo-features.php 493 B

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