WPSEO_GSC_Settings{} Yoast 1.0
Запрещена (устарела) с версии 12.5. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.
Class WPSEO_GSC_Settings.
Хуков нет.
Возвращает
Null. Ничего.
Использование
$WPSEO_GSC_Settings = new WPSEO_GSC_Settings(); // use class methods
Методы
Список изменений
Устарела с | 12.5 |
Код WPSEO_GSC_Settings{} WPSEO GSC Settings{} Yoast 15.6.2
class WPSEO_GSC_Settings {
/**
* Clear all data from the database.
*
* @deprecated 12.5
*
* @codeCoverageIgnore
*
* @param WPSEO_GSC_Service $service Service class instance.
*/
public static function clear_data( WPSEO_GSC_Service $service ) {
_deprecated_function( __METHOD__, 'WPSEO 12.5' );
}
/**
* Reloading all the issues.
*
* @deprecated 12.5
*
* @codeCoverageIgnore
*/
public static function reload_issues() {
_deprecated_function( __METHOD__, 'WPSEO 12.5' );
}
/**
* When authorization is successful return true, otherwise false.
*
* @deprecated 12.5
*
* @codeCoverageIgnore
*
* @return bool
*/
public static function validate_authorization() {
_deprecated_function( __METHOD__, 'WPSEO 12.5' );
return null;
}
/**
* Get the GSC profile.
*
* @deprecated 12.5
*
* @codeCoverageIgnore
*
* @return string
*/
public static function get_profile() {
// Get option.
$option = get_option( 'wpseo-gsc', [ 'profile' => '' ] );
// Set the profile.
$profile = '';
if ( ! empty( $option['profile'] ) ) {
$profile = $option['profile'];
}
// Return the profile.
return trim( $profile, '/' );
}
}