post_date_column_time хук-фильтрWP 2.5.1

Filters the published time of the post.

Использование

add_filter( 'post_date_column_time', 'wp_kama_post_date_column_time_filter', 10, 4 );

/**
 * Function for `post_date_column_time` filter-hook.
 * 
 * @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').
 *
 * @return string
 */
function wp_kama_post_date_column_time_filter( $t_time, $post, $column_name, $mode ){

	// filter...
	return $t_time;
}
$t_time(строка)
The published time.
$post(WP_Post)
Post object.
$column_name(строка)
The column name.
$mode(строка)
The list display mode ('excerpt' or 'list').

Список изменений

С версии 2.5.1 Введена.
С версии 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.

Где вызывается хук

WP_Posts_List_Table::column_date()
post_date_column_time
wp-admin/includes/class-wp-posts-list-table.php 1214
echo apply_filters( 'post_date_column_time', $t_time, $post, 'date', $mode );

Где используется хук в WordPress

Использование не найдено.