manage_post_posts_columns filter-hookWP 3.0.0

Filters the columns displayed in the Posts list table for a specific post type.

This is one of the variants of the dynamic hook manage_(post_type)_posts_columns

Usage

add_filter( 'manage_post_posts_columns', 'wp_kama_manage_post_posts_columns_filter' );

/**
 * Function for `manage_post_posts_columns` filter-hook.
 * 
 * @param string[] $post_columns An associative array of column headings.
 *
 * @return string[]
 */
function wp_kama_manage_post_posts_columns_filter( $post_columns ){

	// filter...
	return $post_columns;
}
$post_columns(string[])
An associative array of column headings.

Changelog

Since 3.0.0 Introduced.

Where the hook is called

WP_Posts_List_Table::get_columns()
manage_post_posts_columns
wp-admin/includes/class-wp-posts-list-table.php 756
return apply_filters( "manage_{$post_type}_posts_columns", $posts_columns );

Where the hook is used in WordPress

Usage not found.