Files
Testing/blog/wp-content/plugins/wordpress-seo/inc/class-wpseo-features.php
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

31 lines
493 B
PHP

<?php
/**
* WPSEO plugin file.
*
* @package WPSEO\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();
}
}