manage_taxonomies_for_(post_type)_columns хук-фильтрWP 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:


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;
Array of taxonomy names to show columns for.
The post type.

Список изменений

С версии 3.5.0 Введена.

Где вызывается хук

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

Где используется хук в WordPress

Использование не найдено.