• 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細

このWikiはいつでも誰でも編集できます

「関数リファレンス/get taxonomy labels」の版間の差分

提供: WordPress Codex 日本語版
移動先: 案内検索
({{NeedTrans}} を追加。)
(Change Log)
27行目: 27行目:
 
== Usage ==
 
== Usage ==
  
%%%<?php get_taxonomy_labels( $tax_object ); ?>%%%
+
<pre>
 +
<?php get_taxonomy_labels( $tax_object ); ?>
 +
</pre>
  
 
== Parameters ==
 
== Parameters ==
42行目: 44行目:
  
 
{{原文| Function Reference/get taxonomy labels |137600}}<!-- 22:56, November 2, 2013 Djkaz 版 -->
 
{{原文| Function Reference/get taxonomy labels |137600}}<!-- 22:56, November 2, 2013 Djkaz 版 -->
 +
 +
{{DEFAULTSORT: Get_taxonomy_labels}}
 +
[[Category:タクソノミー]]
 +
 +
[[en:Function Reference/get taxonomy labels]]

2014年7月6日 (日) 00:48時点における版

このページ「関数リファレンス/get taxonomy labels」は未翻訳です。和訳や日本語情報を加筆してくださる協力者を求めています

Description

Builds an object with all post type labels out of a post type object

Accepted keys of the label array in the post type object:

  • name - General name for the taxonomy, usually plural. The same as and overridden by $tax->label. Default is Tags/Categories
  • singular_name - Name for one object of this taxonomy. Default is Tag/Category.
  • search_items - Default is Search Tags/Search Categories
  • popular_items - This string isn't used on hierarchical taxonomies. Default is Popular Tags
  • all_items - Default is All Tags/All Categories
  • parent_item - This string isn't used on non-hierarchical taxonomies. In hierarchical ones the default is Parent Category
  • parent_item_colon - The same as parent_item, but with colon : in the end
  • edit_item - Default is Edit Tag/Edit Category
  • view_item - Default is View Tag/View Category
  • update_item - Default is Update Tag/Update Category
  • add_new_item - Default is Add New Tag/Add New Category
  • new_item_name - Default is New Tag Name/New Category Name
  • separate_items_with_commas - This string isn't used on hierarchical taxonomies. Default is "Separate tags with commas", used in the meta box.
  • add_or_remove_items - This string isn't used on hierarchical taxonomies. Default is "Add or remove tags", used in the meta box when JavaScript is disabled.
  • choose_from_most_used - This string isn't used on hierarchical taxonomies. Default is "Choose from the most used tags", used in the meta box.
  • not_found - This string isn't used on hierarchical taxonomies. Default is "No tags found", used in the meta box.

Above, the first default value is for non-hierarchical post types (like posts) and the second one is for hierarchical post types (like pages).

Usage

<?php get_taxonomy_labels( $tax_object ); ?>

Parameters

$tax_object
object) (required
初期値: なし

Return Values

(object) 
object with all the labels as member variables

Change Log

Since: 3.0

最新英語版: WordPress Codex » Function Reference/get taxonomy labels 最新版との差分