WPSEO_GSC_Ajax{} Yoast 1.0
Запрещена (устарела) с версии 12.5. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.
Class WPSEO_GSC_Ajax.
Хуков нет.
Возвращает
Null. Ничего.
Использование
$WPSEO_GSC_Ajax = new WPSEO_GSC_Ajax(); // use class methods
Методы
- __construct()
- ajax_mark_as_fixed()
- clear_auth_code()
- dismiss_notice()
- get_profiles()
- get_service()
- save_auth_code()
- valid_nonce()
Список изменений
Устарела с | 12.5 |
Код WPSEO_GSC_Ajax{} WPSEO GSC Ajax{} Yoast 15.6.2
class WPSEO_GSC_Ajax {
/**
* Setting the AJAX hooks for GSC.
*
* @deprecated 12.5
*
* @codeCoverageIgnore
*/
public function __construct() {
_deprecated_function( __METHOD__, 'WPSEO 12.5' );
}
/**
* This method will be access by an AJAX request and will mark an issue as fixed.
*
* First it will do a request to the Google API.
*
* @deprecated 12.5
*
* @codeCoverageIgnore
*/
public function ajax_mark_as_fixed() {
_deprecated_function( __METHOD__, 'WPSEO 12.5' );
}
/**
* Handle the AJAX request and dismiss the GSC notice.
*
* @deprecated 12.5
*
* @codeCoverageIgnore
*/
public function dismiss_notice() {
_deprecated_function( __METHOD__, 'WPSEO 12.5' );
}
/**
* Saves the authorization code.
*
* @deprecated 12.5
*
* @codeCoverageIgnore
*/
public function save_auth_code() {
_deprecated_function( __METHOD__, 'WPSEO 12.5' );
}
/**
* Clears all authorization data.
*
* @deprecated 12.5
*
* @codeCoverageIgnore
*/
public function clear_auth_code() {
_deprecated_function( __METHOD__, 'WPSEO 12.5' );
}
/**
* Check if posted nonce is valid and return true if it is.
*
* @deprecated 12.5
*
* @codeCoverageIgnore
*
* @return mixed
*/
private function valid_nonce() {
_deprecated_function( __METHOD__, 'WPSEO 12.5' );
}
/**
* Returns an instance of the Google Search Console service.
*
* @deprecated 12.5
*
* @codeCoverageIgnore
*
* @return WPSEO_GSC_Service
*/
private function get_service() {
_deprecated_function( __METHOD__, 'WPSEO 12.5' );
return null;
}
/**
* Prints a JSON encoded string with the current profile config.
*
* @deprecated 12.5
*
* @codeCoverageIgnore
*/
private function get_profiles() {
_deprecated_function( __METHOD__, 'WPSEO 12.5' );
}
}