apply_filters( 'rss_widget_feed_link', string|false $feed_link, array $instance )
- Since
- 5.9.0
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_empty_string' );.
Compatibility
- WordPress
- since 5.9.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$feed_linkstring|false- HTML for link to RSS feed.
$instancearray- Array of settings for the current widget.
Where this hook fires · 1
wp-includes/widgets/class-wp-widget-rss.php:112WP_Widget_RSS::widget()
Source code
* * @since 5.9.0 * * @param string|false $feed_link HTML for link to RSS feed. * @param array $instance Array of settings for the current widget. */ $feed_link = apply_filters( 'rss_widget_feed_link', $feed_link, $instance ); $title = $feed_link . '<a class="rsswidget rss-widget-title" href="' . esc_url( $link ) . '">' . esc_html( $title ) . '</a>'; } echo $args['before_widget']; if ( $title ) {Changelog
Introduced in 5.9.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.