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 |
---|---|
622 | $search = esc_attr( urlencode(get_search_query()) ); |
623 | else |
624 | $search = esc_attr( urlencode(stripslashes($search_query)) ); |
625 |
|
626 | if ( empty($feed) ) |
627 | $feed = get_default_feed(); |
628 |
|
629 | $link = trailingslashit(get_option('home')) . "?s=$search&feed=$feed"; |
630 |
|
631 | $link = apply_filters('search_feed_link', $link); |
632 |
|
633 | return $link; |
634 | } |
635 |
|
636 | /** |
637 | * Retrieve the permalink for the comments feed of the search results. |
638 | * |
639 | * @since 2.5.0 |
640 | * |
Line | Code |
647 | $search = esc_attr( urlencode(get_search_query()) ); |
648 | else |
649 | $search = esc_attr( urlencode(stripslashes($search_query)) ); |
650 |
|
651 | if ( empty($feed) ) |
652 | $feed = get_default_feed(); |
653 |
|
654 | $link = trailingslashit(get_option('home')) . "?s=$search&feed=comments-$feed"; |
655 |
|
656 | $link = apply_filters('search_feed_link', $link); |
657 |
|
658 | return $link; |
659 | } |
660 |
|
661 | /** |
662 | * Retrieve edit posts link for post. |
663 | * |
664 | * Can be used within the WordPress loop or outside of it. Can be used with |
665 | * pages, posts, attachments, and revisions. |