rss_widget_feed_link WordPress Filter Hook
The rss_widget_feed_link hook allows you to filter the RSS feed link that is displayed in the RSS Feed Widget. This hook is useful for modifying the RSS feed URL that is displayed, or for adding a custom link to the RSS Feed Widget.
apply_filters( 'rss_widget_feed_link', string $feed_link , array $instance ) #
Filters the classic RSS widget’s feed icon link.
Description
Themes can remove the icon link by using add_filter( 'rss_widget_feed_link', '__return_false' );
.
Parameters
- $feed_link
(string)HTML for link to RSS feed.
- $instance
(array)Array of settings for the current widget.
Source
Changelog
Version | Description |
---|---|
5.9.0 | Introduced. |