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



get_self_link › WordPress Function

Since5.3.0
已弃用n/a
get_self_link ( 没有参数 )
返回:
  • (string) Correct link for the atom:self element.
定义在:
文档:

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'] ) );
}