此代码工作正常,只是想确保我可以将href硬编码到类别编辑屏幕,并使用。。。
"edit-tags.php?action=edit&taxonomy=category&post_type=post&tag_ID=\'.$cat_id.\'"
或者,是否有一种方法应该调用以动态获取类别编辑链接(以防调用发生更改)?//add the filter in order to add custom columns to the category manager
add_filter(\'manage_category_custom_column\', \'display_cat_columns\', 10, 3);
//This function outputs the custom category image onto each row of the category manager grid.
function display_cat_columns($arg1, $column_name, $cat_id){
if (\'ce4_cat_image\' == $column_name) {
return \'<a href="edit-tags.php?action=edit&taxonomy=category&post_type=post&tag_ID=\'.$cat_id.\'">get_category_thumbnail_admin($cat_id, \'thumbnail\').\'</a>\';}
}