WordPress at a glance
function is not described

rest_output_rsd() WP 4.4.0

Adds the REST API URL to the WP RSD endpoint.

No Hooks.

Return

null. Nothing.

Usage

rest_output_rsd();

Notes

  • See: get_rest_url()

Changelog

Since 4.4.0 Introduced.

Code of rest_output_rsd() WP 5.7.2

<?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
}