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 3 times in this file.
Line | Code |
---|---|
1412 |
|
1413 | if ( $time_diff > 0 && $time_diff < 24*60*60 ) |
1414 | $h_time = sprintf( __('%s ago'), human_time_diff( $time ) ); |
1415 | else |
1416 | $h_time = mysql2date(__('Y/m/d'), $m_time); |
1417 | } |
1418 |
|
1419 | echo '<td ' . $attributes . '>'; |
1420 | if ( 'excerpt' == $mode ) |
1421 | echo apply_filters('post_date_column_time', $t_time, $post, $column_name, $mode); |
1422 | else |
1423 | echo '<abbr title="' . $t_time . '">' . apply_filters('post_date_column_time', $h_time, $post, $column_name, $mode) . '</abbr>'; |
1424 | echo '<br />'; |
1425 | if ( 'publish' == $post->post_status ) { |
1426 | _e('Published'); |
1427 | } elseif ( 'future' == $post->post_status ) { |
1428 | if ( $time_diff > 0 ) |
1429 | echo '<strong class="attention">' . __('Missed schedule') . '</strong>'; |
1430 | else |
1431 | _e('Scheduled'); |
1432 | } else { |
Line | Code |
1630 |
|
1631 | $time_diff = time() - $time; |
1632 |
|
1633 | if ( $time_diff > 0 && $time_diff < 24*60*60 ) |
1634 | $h_time = sprintf( __('%s ago'), human_time_diff( $time ) ); |
1635 | else |
1636 | $h_time = mysql2date(__('Y/m/d'), $m_time); |
1637 | } |
1638 | echo '<td ' . $attributes . '>'; |
1639 | echo '<abbr title="' . $t_time . '">' . apply_filters('post_date_column_time', $h_time, $page, $column_name, '') . '</abbr>'; |
1640 | echo '<br />'; |
1641 | if ( 'publish' == $page->post_status ) { |
1642 | _e('Published'); |
1643 | } elseif ( 'future' == $page->post_status ) { |
1644 | if ( $time_diff > 0 ) |
1645 | echo '<strong class="attention">' . __('Missed schedule') . '</strong>'; |
1646 | else |
1647 | _e('Scheduled'); |
1648 | } else { |