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.
This hook occurs 2 times in this file.
| Line | Code | 
|---|---|
| 1070 |      /** | 
| 1071 |       * Filter the search feed link. | 
| 1072 |       * | 
| 1073 |       * @since 2.5.0 | 
| 1074 |       * | 
| 1075 |       * @param string $link Search feed link. | 
| 1076 |       * @param string $feed Feed type. | 
| 1077 |       * @param string $type The search type. One of 'posts' or 'comments'. | 
| 1078 |       */ | 
| 1079 |      return apply_filters( 'search_feed_link', $link, $feed, 'posts' ); | 
| 1080 | } | 
| 1081 |  | 
| 1082 | /** | 
| 1083 |  * Retrieve the permalink for the comments feed of the search results. | 
| 1084 |  * | 
| 1085 |  * @since 2.5.0 | 
| 1086 |  * | 
| 1087 |  * @global WP_Rewrite $wp_rewrite | 
| 1088 |  * | 
| Line | Code | 
| 1100 |  | 
| 1101 |      $permastruct = $wp_rewrite->get_search_permastruct(); | 
| 1102 |  | 
| 1103 |      if ( empty($permastruct) ) | 
| 1104 |           $link = add_query_arg('feed', 'comments-' . $feed, $link); | 
| 1105 |      else | 
| 1106 |           $link = add_query_arg('withcomments', 1, $link); | 
| 1107 |  | 
| 1108 |      /** This filter is documented in wp-includes/link-template.php */ | 
| 1109 |      return apply_filters( 'search_feed_link', $link, $feed, 'comments' ); | 
| 1110 | } | 
| 1111 |  | 
| 1112 | /** | 
| 1113 |  * Retrieve the permalink for a post type archive. | 
| 1114 |  * | 
| 1115 |  * @since 3.1.0 | 
| 1116 |  * | 
| 1117 |  * @global WP_Rewrite $wp_rewrite | 
| 1118 |  * |