media_date_column_time
Filters the published time of an attachment displayed in the Media list table.
Usage
add_filter( 'media_date_column_time', 'wp_kama_media_date_column_time_filter', 10, 3 ); /** * Function for `media_date_column_time` filter-hook. * * @param string $h_time The published time. * @param WP_Post $post Attachment object. * @param string $column_name The column name. * * @return string */ function wp_kama_media_date_column_time_filter( $h_time, $post, $column_name ){ // filter... return $h_time; }
- $h_time(string)
- The published time.
- $post(WP_Post)
- Attachment object.
- $column_name(string)
- The column name.
Changelog
Since 6.0.0 | Introduced. |
Where the hook is called
media_date_column_time
wp-admin/includes/class-wp-media-list-table.php 562
echo apply_filters( 'media_date_column_time', $h_time, $post, 'date' );