rest_get_server
rest_get_server ( No parameters )
Returns:- (WP_REST_Server) REST server instance.
Defined at: - Introduced in WordPress: 4.5.0
- Deprecated in WordPress: —
Description
Retrieves the current REST server instance.Instantiates a new instance if none exists already.