A WordPress-centric search engine for devs and theme authors



rest_output_link_wp_head ›

Since4.4.0
Deprecatedn/a
rest_output_link_wp_head ( No parameters )
See:
Defined at:
Codex:

Outputs the REST API link tag into page header.



Source

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";
}