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
845                           * time and date together available as an abbreviation definition.
846                           *
847                           * @since 2.5.1
848                           *
849                           * @param array   $t_time      The published time.
850                           * @param WP_Post $post        Post object.
851                           * @param string  $column_name The column name.
852                           * @param string  $mode        The list display mode ('excerpt' or 'list').
853                           */
854                          echo apply_filters( 'post_date_column_time', $t_time, $post, $column_name, $mode );
855                     } else {
856
857                          /** This filter is documented in wp-admin/includes/class-wp-posts-list-table.php */
858                          echo '<abbr title="' . $t_time . '">' . apply_filters( 'post_date_column_time', $h_time, $post, $column_name, $mode ) . '</abbr>';
859                     }
860                     echo '<br />';
861                     if ( 'publish' == $post->post_status ) {
862                          _e( 'Published' );
863                     } elseif ( 'future' == $post->post_status ) {
864                          if ( $time_diff > 0 )
865                               echo '<strong class="attention">' . __( 'Missed schedule' ) . '</strong>';
866                          else
867                               _e( 'Scheduled' );