A WordPress-centric search engine for devs and theme authors



get_self_link ›

Since5.3.0
Deprecatedn/a
get_self_link ( No parameters )
Returns:
  • (string) Correct link for the atom:self element.
Defined at:
Codex:

Returns the link for the currently displayed feed.



Source

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