apply_filters( "manage_{$post_type}_posts_columns", string[] $post_columns )
Filters the columns displayed in the Posts list table for a specific post type.
Description Description
The dynamic portion of the hook name, $post_type
, refers to the post type slug.
Parameters Parameters
- $post_columns
-
(string[]) An associative array of column headings.
Source Source
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
Expand full source codeCollapse full source code
For further management of columns, check:
https://developer.wordpress.org/reference/hooks/manage_post-post_type_posts_custom_column/
To set the custom column values
https://developer.wordpress.org/reference/hooks/list_table_primary_column/
To set the primary (default) column