WordPress at a glance
function is not described

rest_output_link_wp_head() WP 4.4.0

Outputs the REST API link tag into page header.

  • See: get_rest_url()

No Hooks.

Return

Nothing (null).

Usage

rest_output_link_wp_head();

Code of rest output link wp head: wp-includes/rest-api.php VER 5.1.1

<?php
function rest_output_link_wp_head() {
	$api_root = get_rest_url();

	if ( empty( $api_root ) ) {
		return;
	}

	echo "<link rel='https://api.w.org/' href='" . esc_url( $api_root ) . "' />\n";
}