Yoast\WP\SEO\Bulk_Editor\Infrastructure\Endpoints

Update_Scores_Endpoint{}Yoast 1.0└─ Bulk_Editor_Endpoint_Interface

Represents the bulk editor per-field score update endpoint.

Хуков нет.

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

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

Методы

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

Код Update_Scores_Endpoint{} Yoast 28.4

class Update_Scores_Endpoint implements Bulk_Editor_Endpoint_Interface {

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

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

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

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