manage_taxonomies_for_attachment_columns

manage_taxonomies_for_attachment_columns

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('manage_taxonomies_for_attachment_columns') is found 1 times:

  • /wp-admin/includes/class-wp-media-list-table.php line 351
    		 *
    		 * @param string[] $taxonomies An array of registered taxonomy names to show for attachments.
    		 * @param string   $post_type  The post type. Default 'attachment'.
    		 */
    		$taxonomies = apply_filters( 'manage_taxonomies_for_attachment_columns', $taxonomies, 'attachment' );
    		$taxonomies = array_filter( $taxonomies, 'taxonomy_exists' );
    
    		foreach ( $taxonomies as $taxonomy ) {
    			if ( 'category' === $taxonomy ) {
    				$column_key = 'categories';
    			} elseif ( 'post_tag' === $taxonomy ) {