Yoast\WP\SEO\MyYoast_Client\Infrastructure\Endpoints

Refresh_Status_Endpoint{} │ Yoast 1.0└─ Management_Endpoint_Interface

Represents the MyYoast refresh-status endpoint.

Хуков нет.

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

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

Методы

  1. public get_name()
  2. public get_namespace()
  3. public get_route()
  4. public get_url()

Код Refresh_Status_Endpoint{} Yoast 28.7

class Refresh_Status_Endpoint implements Management_Endpoint_Interface {

	/**
	 * Gets the name.
	 *
	 * @return string
	 */
	public function get_name(): string {
		return 'refreshStatus';
	}

	/**
	 * Gets the namespace.
	 *
	 * @return string
	 */
	public function get_namespace(): string {
		return Management_Route::ROUTE_NAMESPACE;
	}

	/**
	 * Gets the route.
	 *
	 * @return string
	 */
	public function get_route(): string {
		return Management_Route::ROUTE_PREFIX . Management_Route::REFRESH_STATUS_ROUTE;
	}

	/**
	 * Gets the URL.
	 *
	 * @return string
	 */
	public function get_url(): string {
		return \rest_url( $this->get_namespace() . $this->get_route() );
	}
}