Yoast\WP\SEO\Conditionals
Google_Site_Kit_Feature_Conditional{}└─ Conditional
Устарела с версии 26.7. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.
Conditional for the Google Site Kit feature.
Хуков нет.
Использование
$Google_Site_Kit_Feature_Conditional = new Google_Site_Kit_Feature_Conditional(); // use class methods
Методы
- public __construct( Options_Helper $options )
- public is_met()
Список изменений
| Устарела с | 26.7 |
Код Google_Site_Kit_Feature_Conditional{} Google Site Kit Feature Conditional{} Yoast 26.9
class Google_Site_Kit_Feature_Conditional implements Conditional {
/**
* The options helper.
*
* @var Options_Helper
*/
private $options;
/**
* The constructor.
*
* @param Options_Helper $options The options helper.
*
* @deprecated 26.7
* @codeCoverageIgnore
*/
public function __construct( Options_Helper $options ) {
\_deprecated_function( __METHOD__, 'Yoast SEO 26.7' );
$this->options = $options;
}
/**
* Returns `true` when the Site Kit feature is enabled.
*
* @return bool `true` when the Site Kit feature is enabled.
*
* @deprecated 26.7
* @codeCoverageIgnore
*/
public function is_met() {
\_deprecated_function( __METHOD__, 'Yoast SEO 26.7' );
return true;
}
}