manage_posts_columns filter-hook . WP 1.5.0
Filters the columns displayed in the Posts list table.
Usage
add_filter( 'manage_posts_columns', 'filter_function_name_4446', 10, 2 ); function filter_function_name_4446( $post_columns, $post_type ){ // filter... return $post_columns; }
- $post_columns(string[])
- An associative array of column headings.
- $post_type(string)
- The post type slug.
Changelog
Since 1.5.0 | Introduced. |
Where the hook is called
manage_posts_columns
wp-admin/includes/class-wp-posts-list-table.php 681
$posts_columns = apply_filters( 'manage_posts_columns', $posts_columns, $post_type );