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 |
|---|---|
| 579 | |
| 580 | if ( $time_diff > 0 && $time_diff < 24*60*60 ) |
| 581 | $h_time = sprintf( __( '%s ago' ), human_time_diff( $time ) ); |
| 582 | else |
| 583 | $h_time = mysql2date( __( 'Y/m/d' ), $m_time ); |
| 584 | } |
| 585 | |
| 586 | echo '<td ' . $attributes . '>'; |
| 587 | if ( 'excerpt' == $mode ) |
| 588 | echo apply_filters( 'post_date_column_time', $t_time, $post, $column_name, $mode ); |
| 589 | else |
| 590 | echo '<abbr title="' . $t_time . '">' . apply_filters( 'post_date_column_time', $h_time, $post, $column_name, $mode ) . '</abbr>'; |
| 591 | echo '<br />'; |
| 592 | if ( 'publish' == $post->post_status ) { |
| 593 | _e( 'Published' ); |
| 594 | } elseif ( 'future' == $post->post_status ) { |
| 595 | if ( $time_diff > 0 ) |
| 596 | echo '<strong class="attention">' . __( 'Missed schedule' ) . '</strong>'; |
| 597 | else |
| 598 | _e( 'Scheduled' ); |
| 599 | } else { |