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

41 lines
788 B
PHP
Raw Normal View History

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