Yoast\WP\SEO\AI_Generator\Domain

URLs_Interface{} │ interface │ Yoast 1.0

Устарела с версии 28.4. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.

Helper class to get the URLs needed for the AI Generator API.

Хуков нет.

Использование

$URLs_Interface = new URLs_Interface();
// use class methods

Методы

  1. public get_callback_url()
  2. public get_license_url()
  3. public get_refresh_callback_url()
  4. ERROR: no method name found on line `* Gets the callback URL to be used by the API to send back the access token, refresh token and code challenge.`
  5. ERROR: no method name found on line `* @codeCoverageIgnore`

Список изменений

Устарела с 28.4

Код URLs_Interface{} Yoast 28.7

interface URLs_Interface {

	/**
	 * Gets the licence URL.
	 *
	 * @deprecated 28.4
	 * @codeCoverageIgnore
	 *
	 * @return string The license URL.
	 */
	public function get_license_url(): string;

	/**
	 * 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 callback URL.
	 */
	public function get_callback_url(): string;

	/**
	 * 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 refresh callback URL.
	 */
	public function get_refresh_callback_url(): string;
}