self_link
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
wp-includes/feed.php 699
echo esc_url( apply_filters( 'self_link', get_self_link() ) );