post_date_column_time filter-hook . WP 2.5.1
Filters the published time of the post.
Usage
add_filter( 'post_date_column_time', 'filter_function_name_6277', 10, 4 ); function filter_function_name_6277( $t_time, $post, $column_name, $mode ){ // filter... return $t_time; }
- $t_time(string)
- The published time.
- $post(WP_Post)
- Post object.
- $column_name(string)
- The column name.
- $mode(string)
- The list display mode ('excerpt' or 'list').
Changelog
Since 2.5.1 | Introduced. |
Since 5.5.0 | Removed the difference between 'excerpt' and 'list' modes. The published time and date are both displayed now, which is equivalent to the previous 'excerpt' mode. |
Where the hook is called
post_date_column_time
wp-admin/includes/class-wp-posts-list-table.php 1133
echo apply_filters( 'post_date_column_time', $t_time, $post, 'date', $mode );