rest_output_rsd

Adds the REST API URL to the WP RSD endpoint.

Description

rest_output_rsd(); 

Usage

  1. if ( !function_exists( 'rest_output_rsd' ) ) { 
  2. require_once ABSPATH . WPINC . '/rest-api.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = rest_output_rsd(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/rest-api.php  
  1. function rest_output_rsd() { 
  2. $api_root = get_rest_url(); 
  3.  
  4. if ( empty( $api_root ) ) { 
  5. return; 
  6. ?> 
  7. <api name="WP-API" blogID="1" preferred="false" apiLink="<?php echo esc_url( $api_root ); ?>" /> 
  8. <?php