Used By
Used By | Description |
---|---|
wp-admin/includes/class-wp-posts-list-table.php: WP_Posts_List_Table::get_columns() |
Filters the columns displayed in the Posts list table for a specific post type.
The dynamic portion of the hook name, $post_type
, refers to the post type slug.
(string[]) An associative array of column headings.
$post_columns is an associative array of “column name” ⇒ “label”. The “column name” is passed to callback functions to identify the column. The “label” is shown as the column header.
Built-in Column Types:
Note: Listed in order of appearance. By default, all columns supported by the post type are shown.
cb: Checkbox for bulk actions.
title: Post title. Includes “edit”, “quick edit”, “trash” and “view” links. If $mode (set from $_REQUEST[‘mode’]) is ‘excerpt’, a post excerpt is included between the title and links.
author: Post author.
categories: Categories the post belongs to.
tags: Tags for the post.
comments: Number of pending comments.
date: The date and publish status of the post.
Version | Description |
---|---|
3.0.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/manage_post_type_posts_columns