Filter hook 'post_date_column_status'

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

View Source

post_date_column_status

Filter Hook
Description
Filters the status text of the post.

Hook Information

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

Hook Parameters

Type Name Description
string $status The status text.
WP_Post $post Post object.
string $column_name The column name.
string $mode The list display mode ('excerpt' or 'list').

Usage Examples

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

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

Source Code Context

wp-admin/includes/class-wp-posts-list-table.php:1235 - How this hook is used in WordPress core
<?php
1230  		 * @param string  $status      The status text.
1231  		 * @param WP_Post $post        Post object.
1232  		 * @param string  $column_name The column name.
1233  		 * @param string  $mode        The list display mode ('excerpt' or 'list').
1234  		 */
1235  		$status = apply_filters( 'post_date_column_status', $status, $post, 'date', $mode );
1236  
1237  		if ( $status ) {
1238  			echo $status . '<br />';
1239  		}
1240  

PHP Documentation

<?php
/**
		 * Filters the status text of the post.
		 *
		 * @since 4.8.0
		 *
		 * @param string  $status      The status text.
		 * @param WP_Post $post        Post object.
		 * @param string  $column_name The column name.
		 * @param string  $mode        The list display mode ('excerpt' or 'list').
		 */
Quick Info
  • Hook Type: Filter
  • Parameters: 4
  • File: wp-admin/includes/class-wp-posts-list-table.php
Related Hooks

Related hooks will be displayed here in future updates.