如何在wp-admin菜单,页面标题和帖子编辑器中更改”标签”

【如何在wp-admin菜单,页面标题和帖子编辑器中更改” 标签” 】在wp-admin的Wordpress后端, “ 帖子” 菜单下有” 类别” 和” 标签” 的默认菜单。我想将” 标签” 重命名为其他名称。我已经知道如何在菜单中进行操作, 但是如何更改它在” 标签” 页面以及帖子编辑器右侧小部件区域中显示为标题的位置?
图片显示了标签标签显示和需要调整的区域。

如何在wp-admin菜单,页面标题和帖子编辑器中更改”标签”

文章图片
如何在wp-admin菜单,页面标题和帖子编辑器中更改”标签”

文章图片
#1 Yahooo :)我发现这里的解决方案是功能。把它放在function.php中
function change_tax_object_label() { global $wp_taxonomies; $labels = & $wp_taxonomies['post_tag']-> labels; $labels-> name = __('Keywords', 'framework'); $labels-> singular_name = __('Keywords', 'framework'); $labels-> search_items = __('Search Keywords', 'framework'); $labels-> all_items = __('Keywords', 'framework'); $labels-> separate_items_with_commas = __('Separate Keywords with commas', 'framework'); $labels-> choose_from_most_used = __('Choose from the most used Keywords', 'framework'); $labels-> popular_items = __('Popular Keywords', 'framework'); $labels-> edit_item = __('Edit Keyword Name', 'framework'); $labels-> view_item = __('View Keyword Name', 'framework'); $labels-> update_item = __('Update Keyword Name', 'framework'); $labels-> add_new_item = __('Add Your Keyword Name', 'framework'); $labels-> new_item_name = __('Your New Keywords Name', 'framework'); } add_action( 'init', 'change_tax_object_label' );

#2 并更改菜单
< ?phpadd_action('init', 'renameTags'); function renameTags() { global $wp_taxonomies; $cat = $wp_taxonomies['post_tag']; $cat-> label = __('Keyword ', 'theme-slug'); $cat-> labels-> singular_name = __('Keyword ', 'theme-slug'); $cat-> labels-> name = $cat-> label; $cat-> labels-> menu_name = $cat-> label; }

#3 这是要编辑标签label的完整条目:
function change_tax_object_label() { global $wp_taxonomies; $labels = & $wp_taxonomies['post_tag']-> labels; $labels-> name = "Types"; $labels-> singular_name = "Types"; $labels-> search_items = "Rechercher types"; $labels-> all_items = "Types"; $labels-> separate_items_with_commas = "Séparer les types par des point-virgules \"; \""; $labels-> choose_from_most_used = "Choisir parmis les types les plus utilisés"; $labels-> popular_items = "Types populaires"; $labels-> edit_item = "éditer le type"; $labels-> view_item = "Voir le type"; $labels-> update_item = "Modifier le type"; $labels-> add_new_item = "Ajouter un nouveau type"; $labels-> new_item_name = "Nouveau type"; $labels-> add_or_remove_items = "Ajouter ou retirer des types"; $labels-> not_found = "Aucun type trouvé."; $labels-> no_terms = "Aucun type"; $labels-> items_list_navigation = "Navigation de la liste des types"; $labels-> items_list = "Liste des types"; $labels-> back_to_items = "← Retour aux types"; $labels-> menu_name = "Types"; } add_action( 'init', 'change_tax_object_label' );

    推荐阅读