From 46d0b1c7b14afc6b6728d296c8d503105a210c5b Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Sun, 4 Jan 2009 04:21:35 +0000 Subject: [PATCH] Add hooks for the Users/Categories/Link Categories/Tags table columns, props GM_Alex, fixes #8788 git-svn-id: https://develop.svn.wordpress.org/trunk@10292 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/template.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index bdbf17b004..0ffc73c100 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -181,6 +181,11 @@ function _cat_row( $category, $level, $name_override = false ) { case 'posts': $attributes = 'class="posts column-posts num"' . $style; $output .= "$posts_count\n"; + break; + default: + $output .= ""; + $output .= apply_filters('manage_categories_custom_column', $column_name, $category->term_id); + $output .= ""; } } $output .= ''; @@ -345,6 +350,11 @@ function link_cat_row( $category, $name_override = false ) { case 'links': $attributes = 'class="links column-links num"' . $style; $output .= "$count"; + break; + default: + $output .= ""; + $output .= apply_filters('manage_link_categories_custom_column', $column_name, $category->term_id); + $output .= ""; } } $output .= ''; @@ -633,6 +643,10 @@ function _tag_row( $tag, $class = '', $taxonomy = 'post_tag' ) { $attributes = 'class="posts column-posts num"' . $style; $out .= "$count"; break; + default: + $out .= ""; + $out .= apply_filters("manage_${taxonomy}_custom_column", $column_name, $tag->term_id); + $out .= ""; } } @@ -1879,6 +1893,11 @@ function user_row( $user_object, $style = '', $role = '' ) { $r .= 0; } $r .= ""; + break; + default: + $r .= ""; + $r .= apply_filters('manage_users_custom_column', $column_name, $user_object->ID); + $r .= ""; } } $r .= '';