Yoast\WP\SEO\AI_Generator\Infrastructure

WordPress_URLs{} │ Yoast 1.0└─ 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

Методы

  1. public get_callback_url()
  2. public get_license_url()
  3. public get_refresh_callback_url()
  4. public _deprecated_function( __METHOD__, 'Yoast SEO 28.4' )
  5. ERROR: no method name found on line `/**`
  6. ERROR: no method name found on line `* @codeCoverageIgnore`

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

Устарела с 28.4

Код 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' );
	}
}