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
786                           * time and date together available as an abbreviation definition.
787                           *
788                           * @since 2.5.1
789                           *
790                           * @param array   $t_time      The published time.
791                           * @param WP_Post $post        Post object.
792                           * @param string  $column_name The column name.
793                           * @param string  $mode        The list display mode ('excerpt' or 'list').
794                           */
795                          echo apply_filters( 'post_date_column_time', $t_time, $post, $column_name, $mode );
796                     } else {
797
798                          /** This filter is documented in wp-admin/includes/class-wp-posts-list-table.php */
799                          echo '<abbr title="' . $t_time . '">' . apply_filters( 'post_date_column_time', $h_time, $post, $column_name, $mode ) . '</abbr>';
800                     }
801                     echo '<br />';
802                     if ( 'publish' == $post->post_status ) {
803                          _e( 'Published' );
804                     } elseif ( 'future' == $post->post_status ) {
805                          if ( $time_diff > 0 )
806                               echo '<strong class="attention">' . __( 'Missed schedule' ) . '</strong>';
807                          else
808                               _e( 'Scheduled' );