Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: post_date_column_time

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

This hook occurs 2 times in this file.

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