wpseek.com
WordPress开发者和主题制作者的搜索引擎



rest_output_rsd › WordPress Function

Since4.4.0
已弃用n/a
rest_output_rsd ( 没有参数 )
查看:
定义在:
文档:

Adds the REST API URL to the WP RSD endpoint.



源码

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
}