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 |
---|---|
632 |
|
633 | if ( $time_diff > 0 && $time_diff < DAY_IN_SECONDS ) |
634 | $h_time = sprintf( __( '%s ago' ), human_time_diff( $time ) ); |
635 | else |
636 | $h_time = mysql2date( __( 'Y/m/d' ), $m_time ); |
637 | } |
638 |
|
639 | echo '<td ' . $attributes . '>'; |
640 | if ( 'excerpt' == $mode ) |
641 | echo apply_filters( 'post_date_column_time', $t_time, $post, $column_name, $mode ); |
642 | else |
643 | echo '<abbr title="' . $t_time . '">' . apply_filters( 'post_date_column_time', $h_time, $post, $column_name, $mode ) . '</abbr>'; |
644 | echo '<br />'; |
645 | if ( 'publish' == $post->post_status ) { |
646 | _e( 'Published' ); |
647 | } elseif ( 'future' == $post->post_status ) { |
648 | if ( $time_diff > 0 ) |
649 | echo '<strong class="attention">' . __( 'Missed schedule' ) . '</strong>'; |
650 | else |
651 | _e( 'Scheduled' ); |
652 | } else { |