Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: rss_widget_feed_link

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
102                 * Filters the classic RSS widget's feed icon link.
103                 *
104                 * Themes can remove the icon link by using `add_filter( 'rss_widget_feed_link', '__return_false' );`.
105                 *
106                 * @since 5.9.0
107                 *
108                 * @param string $feed_link HTML for link to RSS feed.
109                 * @param array  $instance  Array of settings for the current widget.
110                 */
111                $feed_link = apply_filters( 'rss_widget_feed_link', $feed_link, $instance );
112
113                $title = $feed_link . '<a class="rsswidget rss-widget-title" href="' . esc_url( $link ) . '">' . esc_html( $title ) . '</a>';
114           }
115
116           echo $args['before_widget'];
117           if ( $title ) {
118                echo $args['before_title'] . $title . $args['after_title'];
119           }
120