Filter hook 'media_date_column_time'

in WP Core File wp-admin/includes/class-wp-media-list-table.php at line 569

View Source

media_date_column_time

Filter Hook
Description
Filters the published time of an attachment displayed in the Media list table.

Hook Information

File Location wp-admin/includes/class-wp-media-list-table.php View on GitHub
Hook Type Filter
Line Number 569

Hook Parameters

Type Name Description
string $h_time The published time.
WP_Post $post Attachment object.
string $column_name The column name.

Usage Examples

Basic Usage
<?php
// Hook into media_date_column_time
add_filter('media_date_column_time', 'my_custom_filter', 10, 3);

function my_custom_filter($h_time, $post, $column_name) {
    // Your custom filtering logic here
    return $h_time;
}

Source Code Context

wp-admin/includes/class-wp-media-list-table.php:569 - How this hook is used in WordPress core
<?php
 564  		 *
 565  		 * @param string  $h_time      The published time.
 566  		 * @param WP_Post $post        Attachment object.
 567  		 * @param string  $column_name The column name.
 568  		 */
 569  		echo apply_filters( 'media_date_column_time', $h_time, $post, 'date' );
 570  	}
 571  
 572  	/**
 573  	 * Handles the parent column output.
 574  	 *

PHP Documentation

<?php
/**
		 * Filters the published time of an attachment displayed in the Media list table.
		 *
		 * @since 6.0.0
		 *
		 * @param string  $h_time      The published time.
		 * @param WP_Post $post        Attachment object.
		 * @param string  $column_name The column name.
		 */
Quick Info
  • Hook Type: Filter
  • Parameters: 3
  • File: wp-admin/includes/class-wp-media-list-table.php
Related Hooks

Related hooks will be displayed here in future updates.