Filter hook 'rss_widget_feed_link'

in WP Core File wp-includes/widgets/class-wp-widget-rss.php at line 111

Description

Filters the classic RSS widget's feed icon link. Themes can remove the icon link by using `add_filter( 'rss_widget_feed_link', '__return_empty_string' );`.

Occurrences

Filename Line Number
wp-includes/widgets/class-wp-widget-rss.php 111

Parameters

Type Name Description
string|false $feed_link HTML for link to RSS feed.
array $instance Array of settings for the current widget.

Usage Examples

Example 1

add_filter( 'rss_widget_feed_link', '__return_empty_string'

PHP Doc

/**
			 * Filters the classic RSS widget's feed icon link.
			 *
			 * Themes can remove the icon link by using `add_filter( 'rss_widget_feed_link', '__return_empty_string' );`.
			 *
			 * @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.
			 */