post_date_column_status
Filters the status text of the post.
Usage
add_filter( 'post_date_column_status', 'wp_kama_post_date_column_status_filter', 10, 4 ); /** * Function for `post_date_column_status` filter-hook. * * @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'). * * @return string */ function wp_kama_post_date_column_status_filter( $status, $post, $column_name, $mode ){ // filter... return $status; }
- $status(string)
- The status text.
- $post(WP_Post)
- Post object.
- $column_name(string)
- The column name.
- $mode(string)
- The list display mode ('excerpt' or 'list').
Changelog
Since 4.8.0 | Introduced. |
Where the hook is called
post_date_column_status
wp-admin/includes/class-wp-posts-list-table.php 1230
$status = apply_filters( 'post_date_column_status', $status, $post, 'date', $mode );