ldc-regalette/content/plugins/wordpress-seo/inc/class-wpseo-features.php

41 lines
788 B
PHP
Raw Normal View History

2020-09-23 12:37:59 +02:00
<?php
/**
* WPSEO plugin file.
*
* @package WPSEO\Internal
*/
/**
* Class containing method for WPSEO Features.
2022-11-09 14:14:13 +00:00
*
* @deprecated 16.0
2020-09-23 12:37:59 +02:00
*/
class WPSEO_Features {
/**
* Checks if the premium constant exists to make sure if plugin is the premium one.
*
2022-11-09 14:14:13 +00:00
* @deprecated 16.0
* @codeCoverageIgnore
*
2020-09-23 12:37:59 +02:00
* @return bool
*/
public function is_premium() {
2022-11-09 14:14:13 +00:00
_deprecated_function( __FUNCTION__, '16.0', 'YoastSEO()->helpers->product->is_premium' );
return YoastSEO()->helpers->product->is_premium();
2020-09-23 12:37:59 +02:00
}
/**
* Checks if using the free version of the plugin.
*
2022-11-09 14:14:13 +00:00
* @deprecated 16.0
* @codeCoverageIgnore
*
2020-09-23 12:37:59 +02:00
* @return bool
*/
public function is_free() {
2022-11-09 14:14:13 +00:00
_deprecated_function( __FUNCTION__, '16.0', 'YoastSEO()->helpers->product->is_premium' );
return true;
2020-09-23 12:37:59 +02:00
}
}