Yoast\WP\SEO\AI_Free_Sparks\Infrastructure\Endpoints

Free_Sparks_Endpoint{} │ Yoast 1.0└─ Endpoint_Interface

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

Represents the free sparks endpoint.

Хуков нет.

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

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

Методы

  1. public get_name()
  2. public get_namespace()
  3. public get_route()
  4. public get_url()
  5. ERROR: no method name found on line `* @deprecated 28.4`
  6. ERROR: no method name found on line ``
  7. ERROR: no method name found on line `* @codeCoverageIgnore`

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

Устарела с 28.4

Код Free_Sparks_Endpoint{} Yoast 28.6

class Free_Sparks_Endpoint implements Endpoint_Interface {

	/**
	 * Gets the name.
	 *
	 * @deprecated 28.4
	 * @codeCoverageIgnore
	 *
	 * @return string
	 */
	public function get_name(): string {
		\_deprecated_function( __METHOD__, 'Yoast SEO 28.4' );
		return 'free_sparks';
	}

	/**
	 * Gets the namespace.
	 *
	 * @deprecated 28.4
	 * @codeCoverageIgnore
	 *
	 * @return string
	 */
	public function get_namespace(): string {
		\_deprecated_function( __METHOD__, 'Yoast SEO 28.4' );
		return Free_Sparks_Route::ROUTE_NAMESPACE;
	}

	/**
	 * Gets the route.
	 *
	 * @deprecated 28.4
	 * @codeCoverageIgnore
	 *
	 * @return string
	 */
	public function get_route(): string {
		\_deprecated_function( __METHOD__, 'Yoast SEO 28.4' );
		return Free_Sparks_Route::ROUTE_PREFIX;
	}

	/**
	 * Gets the URL.
	 *
	 * @deprecated 28.4
	 * @codeCoverageIgnore
	 *
	 * @return string
	 */
	public function get_url(): string {
		\_deprecated_function( __METHOD__, 'Yoast SEO 28.4' );
		return \rest_url( $this->get_namespace() . $this->get_route() );
	}
}