WordPress at a glance
function is not described

get_self_link() WP 5.3.0

Returns the link for the currently displayed feed.

No Hooks.

Return

String. Correct link for the atom:self element.

Usage

get_self_link();

Changelog

Since 5.3.0 Introduced.

Code of get_self_link() WP 5.5.1

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