wppaste
WordPress

apply_filters( "manage_taxonomies_for_{$post_type}_columns", string[] $taxonomies, string $post_type )

Since
3.5.0
Filters the taxonomy columns in the Posts list table.

Description

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

Possible hook names include:

  • manage_taxonomies_for_post_columns
  • manage_taxonomies_for_page_columns

Compatibility

WordPress
since 3.5.0
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Parameters

$taxonomiesstring[]
Array of taxonomy names to show columns for.
$post_typestring
The post type.

Where this hook fires · 1

  • wp-admin/includes/class-wp-posts-list-table.php:688WP_Posts_List_Table::get_columns()

Source code

		 *		 * @since 3.5.0		 *		 * @param string[] $taxonomies Array of taxonomy names to show columns for.		 * @param string   $post_type  The post type.		 */		$taxonomies = apply_filters( "manage_taxonomies_for_{$post_type}_columns", $taxonomies, $post_type );		$taxonomies = array_filter( $taxonomies, 'taxonomy_exists' ); 		foreach ( $taxonomies as $taxonomy ) {			if ( 'category' === $taxonomy ) {				$column_key = 'categories';			} elseif ( 'post_tag' === $taxonomy ) {

Changelog

Introduced in 3.5.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.