get_self_link(): string

Returns the link for the currently displayed feed.


Return

string Correct link for the atom:self element.


Top ↑

Source

File: wp-includes/feed.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
5.3.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.