self_link filter-hookWP 3.6.0

Filters the current feed URL.

Usage

add_filter( 'self_link', 'wp_kama_self_link_filter' );

/**
 * Function for `self_link` filter-hook.
 * 
 * @param string $feed_link The link for the feed with set URL scheme.
 *
 * @return string
 */
function wp_kama_self_link_filter( $feed_link ){

	// filter...
	return $feed_link;
}
$feed_link(string)
The link for the feed with set URL scheme.

Changelog

Since 3.6.0 Introduced.

Where the hook is called

self_link()
self_link
wp-includes/feed.php 683
echo esc_url( apply_filters( 'self_link', get_self_link() ) );

Where the hook is used in WordPress

Usage not found.