manage_taxonomies_for_(post_type)_columns filter-hookWP 3.5.0

Filters the taxonomy columns in the Posts list table.

The dynamic portion of the hook name, $post_type, refers to the post type slug.

Possible hook names include:

Usage

add_filter( 'manage_taxonomies_for_(post_type)_columns', 'wp_kama_manage_taxonomies_for_post_type_columns_filter', 10, 2 );

/**
 * Function for `manage_taxonomies_for_(post_type)_columns` filter-hook.
 * 
 * @param string[] $taxonomies Array of taxonomy names to show columns for.
 * @param string   $post_type  The post type.
 *
 * @return string[]
 */
function wp_kama_manage_taxonomies_for_post_type_columns_filter( $taxonomies, $post_type ){

	// filter...
	return $taxonomies;
}
$taxonomies(string[])
Array of taxonomy names to show columns for.
$post_type(string)
The post type.

Changelog

Since 3.5.0 Introduced.

Where the hook is called

WP_Posts_List_Table::get_columns()
manage_taxonomies_for_(post_type)_columns
wp-admin/includes/class-wp-posts-list-table.php 689
$taxonomies = apply_filters( "manage_taxonomies_for_{$post_type}_columns", $taxonomies, $post_type );

Where the hook is used in WordPress

Usage not found.