wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



get_self_link › WordPress Function

Od5.3.0
Przestarzałyn/a
› get_self_link ( Brak parametrów )
Powrót:
  • (string) Correct link for the atom:self element.
Zdefiniowane na:
Codex:

Returns the link for the currently displayed feed.



Źródło

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