Yoast\WP\SEO\Bulk_Editor\Infrastructure\Endpoints
Update_Search_Endpoint{}└─ Bulk_Editor_Endpoint_Interface
Represents the bulk editor search appearance update endpoint.
Хуков нет.
Использование
$Update_Search_Endpoint = new Update_Search_Endpoint(); // use class methods
Методы
- public get_name()
- public get_namespace()
- public get_route()
- public get_url()
Код Update_Search_Endpoint{} Update Search Endpoint{} Yoast 28.3
class Update_Search_Endpoint implements Bulk_Editor_Endpoint_Interface {
/**
* Gets the name.
*
* @return string
*/
public function get_name(): string {
return 'update_search';
}
/**
* Gets the namespace.
*
* @return string
*/
public function get_namespace(): string {
return Search_Bulk_Update_Route::ROUTE_NAMESPACE;
}
/**
* Gets the route.
*
* @return string
*/
public function get_route(): string {
return Search_Bulk_Update_Route::ROUTE_PREFIX;
}
/**
* Gets the URL.
*
* @return string
*/
public function get_url(): string {
return \rest_url( $this->get_namespace() . $this->get_route() );
}
}