Taxonomy support in WordPress 3.0 has improved in many places. During the time I spent updating a few of my plugins, I noticed that dynamic filters had been defined for the columns that appear on edit-tags.php – the file that lists the terms for each taxonomy in the administration panels. The following snippet demonstrates how to schedule a function to be fired for every taxonomy’s custom column.
if( !function_exists( 'mfields_taxonomy_add_term_row_actions' ) ) {
add_action( 'admin_init', 'mfields_taxonomy_add_term_row_actions' );
/**
* Dynamically create actions for every defined taxonomy.
*/
function mfields_taxonomy_add_term_row_actions() {
global $wp_taxonomies;
foreach( $wp_taxonomies as $taxonomy => $taxonomies ) {
$action = 'manage_' . $taxonomy . '_custom_column';
add_action( $action, 'your_function_name', 10, 3 );
}
}
}


