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 |
|---|---|
| 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. |