wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



get_self_link › WordPress Function

Depuis5.3.0
Dépréciéen/a
get_self_link ( Pas de paramètres )
Retourne:
  • (string) Correct link for the atom:self element.
Défini(e) dans:
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'] ) );
}