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 |
---|---|
855 | } else { |
856 | $arcresults = $cache[ $key ]; |
857 | } |
858 | if ( $arcresults ) { |
859 | foreach ( (array) $arcresults as $arcresult ) { |
860 | if ( $arcresult->post_date != '0000-00-00 00:00:00' ) { |
861 | $url = get_permalink($arcresult); |
862 | $arc_title = $arcresult->post_title; |
863 | if ( $arc_title ) |
864 | $text = strip_tags(apply_filters('the_title', $arc_title)); |
865 | else |
866 | $text = $arcresult->ID; |
867 | $output .= get_archives_link($url, $text, $format, $before, $after); |
868 | } |
869 | } |
870 | } |
871 | } |
872 | if ( $echo ) |
873 | echo $output; |
Line | Code |
1033 | ."FROM $wpdb->posts " |
1034 | ."WHERE YEAR(post_date) = '$thisyear' " |
1035 | ."AND MONTH(post_date) = '$thismonth' " |
1036 | ."AND post_date < '".current_time('mysql')."' " |
1037 | ."AND post_type = 'post' AND post_status = 'publish'" |
1038 | ); |
1039 | if ( $ak_post_titles ) { |
1040 | foreach ( (array) $ak_post_titles as $ak_post_title ) { |
1041 |
|
1042 | $post_title = apply_filters( "the_title", $ak_post_title->post_title ); |
1043 | $post_title = str_replace('"', '"', wptexturize( $post_title )); |
1044 |
|
1045 | if ( empty($ak_titles_for_day['day_'.$ak_post_title->dom]) ) |
1046 | $ak_titles_for_day['day_'.$ak_post_title->dom] = ''; |
1047 | if ( empty($ak_titles_for_day["$ak_post_title->dom"]) ) // first one |
1048 | $ak_titles_for_day["$ak_post_title->dom"] = $post_title; |
1049 | else |
1050 | $ak_titles_for_day["$ak_post_title->dom"] .= $ak_title_separator . $post_title; |
1051 | } |