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 |
|---|---|
| 419 | } elseif ( ( 'postbypost' == $type ) || ('alpha' == $type) ) { |
| 420 | ('alpha' == $type) ? $orderby = "post_title ASC " : $orderby = "post_date DESC "; |
| 421 | $arcresults = $wpdb->get_results("SELECT * FROM $wpdb->posts $join $where ORDER BY $orderby $limit"); |
| 422 | if ( $arcresults ) { |
| 423 | foreach ( $arcresults as $arcresult ) { |
| 424 | if ( $arcresult->post_date != '0000-00-00 00:00:00' ) { |
| 425 | $url = get_permalink($arcresult); |
| 426 | $arc_title = $arcresult->post_title; |
| 427 | if ( $arc_title ) |
| 428 | $text = strip_tags(apply_filters('the_title', $arc_title)); |
| 429 | else |
| 430 | $text = $arcresult->ID; |
| 431 | echo get_archives_link($url, $text, $format, $before, $after); |
| 432 | } |
| 433 | } |
| 434 | } |
| 435 | } |
| 436 | } |
| 437 | |
| Line | Code |
| 580 | ."FROM $wpdb->posts " |
| 581 | ."WHERE YEAR(post_date) = '$thisyear' " |
| 582 | ."AND MONTH(post_date) = '$thismonth' " |
| 583 | ."AND post_date < '".current_time('mysql')."' " |
| 584 | ."AND post_type = 'post' AND post_status = 'publish'" |
| 585 | ); |
| 586 | if ( $ak_post_titles ) { |
| 587 | foreach ( $ak_post_titles as $ak_post_title ) { |
| 588 | |
| 589 | $post_title = apply_filters( "the_title", $ak_post_title->post_title ); |
| 590 | $post_title = str_replace('"', '"', wptexturize( $post_title )); |
| 591 | |
| 592 | if ( empty($ak_titles_for_day['day_'.$ak_post_title->dom]) ) |
| 593 | $ak_titles_for_day['day_'.$ak_post_title->dom] = ''; |
| 594 | if ( empty($ak_titles_for_day["$ak_post_title->dom"]) ) // first one |
| 595 | $ak_titles_for_day["$ak_post_title->dom"] = $post_title; |
| 596 | else |
| 597 | $ak_titles_for_day["$ak_post_title->dom"] .= $ak_title_separator . $post_title; |
| 598 | } |