Yoast\WP\SEO\AI\Generator\Infrastructure\Endpoints
Bust_Subscription_Cache_Endpoint{}└─ Generator_Endpoint_Interface
Represents the bust subscription cache endpoint.
Хуков нет.
Использование
$Bust_Subscription_Cache_Endpoint = new Bust_Subscription_Cache_Endpoint(); // use class methods
Методы
- public get_name()
- public get_namespace()
- public get_route()
- public get_url()
Код Bust_Subscription_Cache_Endpoint{} Bust Subscription Cache Endpoint{} Yoast 27.7
class Bust_Subscription_Cache_Endpoint implements Generator_Endpoint_Interface {
/**
* Gets the name.
*
* @return string
*/
public function get_name(): string {
return 'bustSubscriptionCache';
}
/**
* Gets the namespace.
*
* @return string
*/
public function get_namespace(): string {
return Bust_Subscription_Cache_Route::ROUTE_NAMESPACE;
}
/**
* Gets the route.
*
* @return string
*/
public function get_route(): string {
return Bust_Subscription_Cache_Route::ROUTE_PREFIX;
}
/**
* Gets the URL.
*
* @return string
*/
public function get_url(): string {
return \rest_url( $this->get_namespace() . $this->get_route() );
}
}