Used By
Used By | Description |
---|---|
wp-admin/includes/class-wp-posts-list-table.php: WP_Posts_List_Table::column_default() | Handles the default column output. |
Fires for each custom column of a specific post type in the Posts list table.
The dynamic portion of the hook name, $post->post_type
, refers to the post type.
(string) The name of the column to display.
(int) The current post ID.
This action is called whenever a value for a custom column should be output for a custom post type. Combined with the manage_${post_type}_posts_columns filter, this allows you to add or remove (unset) custom columns to a list of custom post types.
For built-in post types and multiple custom types, use manage_posts_custom_column.
Terms and Taxonomies
When passing this function on terms and taxonomies, a third parameter is added.
$column_name
(string) (required) The name of the column to display.
Default: None
$term_id
(int) (required) The ID of the current term. Can also be taken from the global $current_screen->taxonomy.
Default: None
$null
(null) (required) Unused and won’t pass anything.
Default: None
Version | Description |
---|---|
3.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/manage_post-post_type_posts_custom_column