Yoast\WP\SEO\AI\Content_Planner\Infrastructure\Endpoints
Banner_Permanent_Dismissal_Endpoint{}└─ Content_Planner_Endpoint_Interface
Represents the content planner endpoint to permanently dismiss the inline banner.
Хуков нет.
Использование
$Banner_Permanent_Dismissal_Endpoint = new Banner_Permanent_Dismissal_Endpoint(); // use class methods
Методы
- public get_name()
- public get_namespace()
- public get_route()
- public get_url()
Код Banner_Permanent_Dismissal_Endpoint{} Banner Permanent Dismissal Endpoint{} Yoast 27.8
class Banner_Permanent_Dismissal_Endpoint implements Content_Planner_Endpoint_Interface {
/**
* Gets the name.
*
* @return string
*/
public function get_name(): string {
return 'bannerPermanentDismissal';
}
/**
* Gets the namespace.
*
* @return string
*/
public function get_namespace(): string {
return Banner_Permanent_Dismissal_Route::ROUTE_NAMESPACE;
}
/**
* Gets the route.
*
* @return string
*/
public function get_route(): string {
return Banner_Permanent_Dismissal_Route::ROUTE_PREFIX;
}
/**
* Gets the URL.
*
* @return string
*/
public function get_url(): string {
return \rest_url( $this->get_namespace() . $this->get_route() );
}
}