rest_output_rsd() WordPress Function

The rest_output_rsd() function is used to output the Really Simple Discovery (RSD) service endpoint for a WordPress site. This endpoint allows other websites and applications to discover information about the site, such as the site's name, the URL of the Atom feed, and the URL of the WordPress REST API.

rest_output_rsd() #

Adds the REST API URL to the WP RSD endpoint.


Description

Top ↑

See also


Top ↑

Source

File: wp-includes/rest-api.php

function rest_output_rsd() {
	$api_root = get_rest_url();

	if ( empty( $api_root ) ) {
		return;
	}
	?>
	<api name="WP-API" blogID="1" preferred="false" apiLink="<?php echo esc_url( $api_root ); ?>" />
	<?php
}


Top ↑

Changelog

Changelog
VersionDescription
4.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More