wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



get_self_link › WordPress Function

Da5.3.0
Deprecaton/a
› get_self_link ( Nessun parametro )
Ritorna:
  • (string) Correct link for the atom:self element.
Definito a:
Codex:

Returns the link for the currently displayed feed.



Sorgenti

function get_self_link() {
	$parsed = parse_url( home_url() );

	$domain = $parsed['host'];
	if ( isset( $parsed['port'] ) ) {
		$domain .= ':' . $parsed['port'];
	}

	return set_url_scheme( 'http://' . $domain . wp_unslash( $_SERVER['REQUEST_URI'] ) );
}