wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



get_self_link › WordPress Function

Desde5.3.0
Obsoleton/a
get_self_link ( Sem parâmetros )
Retorna:
  • (string) Correct link for the atom:self element.
Definido em:
Codex:

Returns the link for the currently displayed feed.



Fonte

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