Welcome, visitor! Log in
 

Source View: search_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.

  • Action hooks look like this: do_action( "hook_name" )
  • Filter hooks look like this: 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.

Source View

This hook occurs 2 times in this file.

Line Code
614           $search = attribute_escape(get_search_query());
615      else
616           $search = attribute_escape(stripslashes($search_query));
617
618      if ( empty($feed) )
619           $feed = get_default_feed();
620
621      $link = get_option('home') . "?s=$search&feed=$feed";
622
623      $link = apply_filters('search_feed_link', $link);
624
625      return $link;
626 }
627
628 /**
629  * Retrieve the permalink for the comments feed of the search results.
630  *
631  * @since 2.5.0
632  *
 
Line Code
639           $search = attribute_escape(get_search_query());
640      else
641           $search = attribute_escape(stripslashes($search_query));
642
643      if ( empty($feed) )
644           $feed = get_default_feed();
645
646      $link = get_option('home') . "?s=$search&feed=comments-$feed";
647
648      $link = apply_filters('search_feed_link', $link);
649
650      return $link;
651 }
652
653 /**
654  * Retrieve edit posts link for post.
655  *
656  * Can be used within the WordPress loop or outside of it. Can be used with
657  * pages, posts, attachments, and revisions.