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 |
---|---|
415 | $search = attribute_escape(get_search_query()); |
416 | else |
417 | $search = attribute_escape(stripslashes($search_query)); |
418 |
|
419 | if ( empty($feed) ) |
420 | $feed = get_default_feed(); |
421 |
|
422 | $link = get_option('home') . "?s=$search&feed=$feed"; |
423 |
|
424 | $link = apply_filters('search_feed_link', $link); |
425 |
|
426 | return $link; |
427 | } |
428 |
|
429 | function get_search_comments_feed_link($search_query = '', $feed = '') { |
430 | if ( empty($search_query) ) |
431 | $search = attribute_escape(get_search_query()); |
432 | else |
433 | $search = attribute_escape(stripslashes($search_query)); |
434 |
|
435 | if ( empty($feed) ) |
436 | $feed = get_default_feed(); |
437 |
|
438 | $link = get_option('home') . "?s=$search&feed=comments-$feed"; |
439 |
|
440 | $link = apply_filters('search_feed_link', $link); |
441 |
|
442 | return $link; |
443 | } |
444 |
|
445 | function get_edit_post_link( $id = 0 ) { |
446 | if ( !$post = &get_post( $id ) ) |
447 | return; |
448 |
|
449 | switch ( $post->post_type ) : |