self_link()WP 2.5.0

Displays the link for the currently displayed feed in a XSS safe way.

Generate a correct link for the atom:self element.

Hooks from the function

Return

null. Nothing (null).

Usage

self_link();

Changelog

Since 2.5.0 Introduced.

self_link() code WP 6.5.2

function self_link() {
	/**
	 * Filters the current feed URL.
	 *
	 * @since 3.6.0
	 *
	 * @see set_url_scheme()
	 * @see wp_unslash()
	 *
	 * @param string $feed_link The link for the feed with set URL scheme.
	 */
	echo esc_url( apply_filters( 'self_link', get_self_link() ) );
}