get_self_link

函数


get_self_link ( No parameters )
返回值
  • (string) Correct link for the atom:self element.
定义位置
  • wp-includes/feed.php
    , line 660
引入
5.3.0
弃用

Returns the link for the currently displayed feed.

function get_self_link() {
	$host = parse_url( home_url() );
	return set_url_scheme( 'http://' . $host['host'] . wp_unslash( $_SERVER['REQUEST_URI'] ) );
}