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 |
---|---|
519 | } else { |
520 | $arcresults = $cache[ $key ]; |
521 | } |
522 | if ( $arcresults ) { |
523 | foreach ( $arcresults as $arcresult ) { |
524 | if ( $arcresult->post_date != '0000-00-00 00:00:00' ) { |
525 | $url = get_permalink($arcresult); |
526 | $arc_title = $arcresult->post_title; |
527 | if ( $arc_title ) |
528 | $text = strip_tags(apply_filters('the_title', $arc_title)); |
529 | else |
530 | $text = $arcresult->ID; |
531 | echo get_archives_link($url, $text, $format, $before, $after); |
532 | } |
533 | } |
534 | } |
535 | } |
536 | } |
537 |
|
Line | Code |
677 | ."FROM $wpdb->posts " |
678 | ."WHERE YEAR(post_date) = '$thisyear' " |
679 | ."AND MONTH(post_date) = '$thismonth' " |
680 | ."AND post_date < '".current_time('mysql')."' " |
681 | ."AND post_type = 'post' AND post_status = 'publish'" |
682 | ); |
683 | if ( $ak_post_titles ) { |
684 | foreach ( $ak_post_titles as $ak_post_title ) { |
685 |
|
686 | $post_title = apply_filters( "the_title", $ak_post_title->post_title ); |
687 | $post_title = str_replace('"', '"', wptexturize( $post_title )); |
688 |
|
689 | if ( empty($ak_titles_for_day['day_'.$ak_post_title->dom]) ) |
690 | $ak_titles_for_day['day_'.$ak_post_title->dom] = ''; |
691 | if ( empty($ak_titles_for_day["$ak_post_title->dom"]) ) // first one |
692 | $ak_titles_for_day["$ak_post_title->dom"] = $post_title; |
693 | else |
694 | $ak_titles_for_day["$ak_post_title->dom"] .= $ak_title_separator . $post_title; |
695 | } |