A WordPress-centric search engine for devs and theme authors



rest_output_rsd ›

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

Adds the REST API URL to the WP RSD endpoint.



Source

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
}