WordPress at a glance
function is not described

WP_REST_Response::get_links() public WP 4.4.0

Retrieves links for the response.

{} It's a method of the class: WP_REST_Response{}

No Hooks.

Return

Array. List of links.

Usage

$WP_REST_Response = new WP_REST_Response();
$WP_REST_Response->get_links();

Changelog

Since 4.4.0 Introduced.

Code of WP_REST_Response::get_links() WP 5.5.3

<?php
public function get_links() {
	return $this->links;
}