Yoast\WP\SEO\Dashboard\Infrastructure\Endpoints
Setup_Steps_Tracking_Endpoint{}
Represents the setup steps tracking endpoint.
Хуков нет.
Использование
$Setup_Steps_Tracking_Endpoint = new Setup_Steps_Tracking_Endpoint(); // use class methods
Методы
- public get_name()
- public get_namespace()
- public get_route()
- public get_url()
Код Setup_Steps_Tracking_Endpoint{} Setup Steps Tracking Endpoint{} Yoast 25.1
class Setup_Steps_Tracking_Endpoint implements Endpoint_Interface { /** * Gets the name. * * @return string */ public function get_name(): string { return 'setupStepsTracking'; } /** * Gets the namespace. * * @return string */ public function get_namespace(): string { return Setup_Steps_Tracking_Route::ROUTE_NAMESPACE; } /** * Gets the route. * * @throws Exception If the route prefix is not overwritten this throws. * @return string */ public function get_route(): string { return Setup_Steps_Tracking_Route::ROUTE_PREFIX; } /** * Gets the URL. * * @return string */ public function get_url(): string { return \rest_url( $this->get_namespace() . $this->get_route() ); } }