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 |
|---|---|
| 454 | } elseif ( ( 'postbypost' == $type ) || ('alpha' == $type) ) { |
| 455 | ('alpha' == $type) ? $orderby = "post_title ASC " : $orderby = "post_date DESC "; |
| 456 | $arcresults = $wpdb->get_results("SELECT * FROM $wpdb->posts $join $where ORDER BY $orderby $limit"); |
| 457 | if ( $arcresults ) { |
| 458 | foreach ( $arcresults as $arcresult ) { |
| 459 | if ( $arcresult->post_date != '0000-00-00 00:00:00' ) { |
| 460 | $url = get_permalink($arcresult); |
| 461 | $arc_title = $arcresult->post_title; |
| 462 | if ( $arc_title ) |
| 463 | $text = strip_tags(apply_filters('the_title', $arc_title)); |
| 464 | else |
| 465 | $text = $arcresult->ID; |
| 466 | echo get_archives_link($url, $text, $format, $before, $after); |
| 467 | } |
| 468 | } |
| 469 | } |
| 470 | } |
| 471 | } |
| 472 | |
| Line | Code |
| 615 | ."FROM $wpdb->posts " |
| 616 | ."WHERE YEAR(post_date) = '$thisyear' " |
| 617 | ."AND MONTH(post_date) = '$thismonth' " |
| 618 | ."AND post_date < '".current_time('mysql')."' " |
| 619 | ."AND post_type = 'post' AND post_status = 'publish'" |
| 620 | ); |
| 621 | if ( $ak_post_titles ) { |
| 622 | foreach ( $ak_post_titles as $ak_post_title ) { |
| 623 | |
| 624 | $post_title = apply_filters( "the_title", $ak_post_title->post_title ); |
| 625 | $post_title = str_replace('"', '"', wptexturize( $post_title )); |
| 626 | |
| 627 | if ( empty($ak_titles_for_day['day_'.$ak_post_title->dom]) ) |
| 628 | $ak_titles_for_day['day_'.$ak_post_title->dom] = ''; |
| 629 | if ( empty($ak_titles_for_day["$ak_post_title->dom"]) ) // first one |
| 630 | $ak_titles_for_day["$ak_post_title->dom"] = $post_title; |
| 631 | else |
| 632 | $ak_titles_for_day["$ak_post_title->dom"] .= $ak_title_separator . $post_title; |
| 633 | } |