wppaste
WordPress

apply_filters( 'post_date_column_time', string $t_time, WP_Post $post, string $column_name, string $mode )

Since
2.5.1, 5.5.0
Filters the published, scheduled, or unpublished time of the post.

Compatibility

WordPress
since 5.5.0
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Parameters

$t_timestring
The published time.
$postWP_Post
Post object.
$column_namestring
The column name.
$modestring
The list display mode ('excerpt' or 'list').

Where this hook fires · 1

  • wp-admin/includes/class-wp-posts-list-table.php:1251WP_Posts_List_Table::column_date()

Source code

		 *		 * @param string  $t_time      The published time.		 * @param WP_Post $post        Post object.		 * @param string  $column_name The column name.		 * @param string  $mode        The list display mode ('excerpt' or 'list').		 */		echo apply_filters( 'post_date_column_time', $t_time, $post, 'date', $mode );	} 	/**	 * Handles the comments column output.	 *	 * @since 4.3.0

Changelog

Introduced in 2.5.1. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

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.from the docblock
2.5.1
Introduced.from the docblock

About this page

Parsed data
Generated from the wordpress-develop 7.0.4 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.