函数原型
get_self_link(): string
函数描述
Returns the link for the currently displayed feed.
是否弃用
未弃用
函数参数
无
函数返回值
string Correct link for the atom:self element.
函数位置
File: wp-includes/feed.php.
函数源码
function get_self_link() {
$host = parse_url( home_url() );
return set_url_scheme( 'http://' . $host['host'] . wp_unslash( $_SERVER['REQUEST_URI'] ) );
}
源码链接
变更日志
| Version | Description |
|---|---|
| 5.3.0 | Introduced. |

