WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| 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_empty_string' );`. |
| 105 | * |
| 106 | * @since 5.9.0 |
| 107 | * |
| 108 | * @param string|false $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 | |