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' );.


Top ↑

Parameters

$feed_link

(string)HTML for link to RSS feed.

$instance

(array)Array of settings for the current widget.


Top ↑

Source

File: wp-includes/widgets/class-wp-widget-rss.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.