get_self_link()

Returns the link for the currently displayed feed.


Description Description


Return Return

(string) Correct link for the atom:self element.


Top ↑

Source Source

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

Top ↑

Changelog Changelog

Changelog
Version Description
5.3.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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