WordPress at a glance
function is not described

WC_API_Server::link_header() public WC 2.1

Send a Link header

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

No Hooks.

Return

Null. Nothing.

Usage

$WC_API_Server = new WC_API_Server();
$WC_API_Server->link_header( $rel, $link, $other );
$rel(string) (required)
Link relation. Either a registered type, or an absolute URL
$link(string) (required)
Target IRI for the link
$other(array)
Other parameters to send, as an associative array

Changelog

Since 2.1 Introduced.

Code of WC_API_Server::link_header() WC 5.0.0

<?php
public function link_header( $rel, $link, $other = array() ) {

	$header = sprintf( '<%s>; rel="%s"', $link, esc_attr( $rel ) );

	foreach ( $other as $key => $value ) {

		if ( 'title' == $key ) {

			$value = '"' . $value . '"';
		}

		$header .= '; ' . $key . '=' . $value;
	}

	$this->header( 'Link', $header, false );
}