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
This commit is contained in:
Andrew Ozz 2009-01-04 04:21:35 +00:00
parent 416baab11a
commit 46d0b1c7b1
1 changed files with 19 additions and 0 deletions

View File

@ -181,6 +181,11 @@ function _cat_row( $category, $level, $name_override = false ) {
case 'posts':
$attributes = 'class="posts column-posts num"' . $style;
$output .= "<td $attributes>$posts_count</td>\n";
break;
default:
$output .= "<td $attributes>";
$output .= apply_filters('manage_categories_custom_column', $column_name, $category->term_id);
$output .= "</td>";
}
}
$output .= '</tr>';
@ -345,6 +350,11 @@ function link_cat_row( $category, $name_override = false ) {
case 'links':
$attributes = 'class="links column-links num"' . $style;
$output .= "<td $attributes>$count</td>";
break;
default:
$output .= "<td $attributes>";
$output .= apply_filters('manage_link_categories_custom_column', $column_name, $category->term_id);
$output .= "</td>";
}
}
$output .= '</tr>';
@ -633,6 +643,10 @@ function _tag_row( $tag, $class = '', $taxonomy = 'post_tag' ) {
$attributes = 'class="posts column-posts num"' . $style;
$out .= "<td $attributes>$count</td>";
break;
default:
$out .= "<td $attributes>";
$out .= apply_filters("manage_${taxonomy}_custom_column", $column_name, $tag->term_id);
$out .= "</td>";
}
}
@ -1879,6 +1893,11 @@ function user_row( $user_object, $style = '', $role = '' ) {
$r .= 0;
}
$r .= "</td>";
break;
default:
$r .= "<td $attributes>";
$r .= apply_filters('manage_users_custom_column', $column_name, $user_object->ID);
$r .= "</td>";
}
}
$r .= '</tr>';