Yoast\WP\SEO\AI_Generator\Infrastructure
WordPress_URLs{}└─ URLs_Interface
Устарела с версии 28.4. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.
Class WordPress_URLs Provides URLs for the AI Generator API in a WordPress context.
Хуков нет.
Использование
$WordPress_URLs = new WordPress_URLs(); // use class methods
Методы
- public get_callback_url()
- public get_license_url()
- public get_refresh_callback_url()
- public _deprecated_function( __METHOD__, 'Yoast SEO 28.4' )
- ERROR: no method name found on line `/**`
- ERROR: no method name found on line `* @codeCoverageIgnore`
Список изменений
| Устарела с | 28.4 |
Код WordPress_URLs{} WordPress URLs{} Yoast 28.9
class WordPress_URLs implements URLs_Interface {
/**
* Gets the license URL.
*
* @deprecated 28.4
* @codeCoverageIgnore
*
* @return string The license URL.
*/
public function get_license_url(): string {
\_deprecated_function( __METHOD__, 'Yoast SEO 28.4' );
return WPSEO_Utils::get_home_url();
}
/**
* Gets the callback URL to be used by the API to send back the access token, refresh token and code challenge.
*
* @deprecated 28.4
* @codeCoverageIgnore
*
* @return string The callbacks URL.
*/
public function get_callback_url(): string {
\_deprecated_function( __METHOD__, 'Yoast SEO 28.4' );
return \get_rest_url( null, 'yoast/v1/ai_generator/callback' );
}
/**
* Gets the callback URL to be used by the API to send back the refreshed JWTs once they expire.
*
* @deprecated 28.4
* @codeCoverageIgnore
*
* @return string The callbacks URL.
*/
public function get_refresh_callback_url(): string {
\_deprecated_function( __METHOD__, 'Yoast SEO 28.4' );
return \get_rest_url( null, 'yoast/v1/ai_generator/refresh_callback' );
}
}