当サイト、Codex 日本語版は今後積極的な更新は行わない予定です。後継となる新ユーザーマニュアルは、https://ja.wordpress.org/support/ にあります。
万が一、当サイトで重大な問題を発見した際などは、フォーラムWordSlack #docs チャンネルでお知らせください。</p>

「関数リファレンス/sanitize term」の版間の差分

提供: WordPress Codex 日本語版
移動先: 案内検索
(en:Function Reference/sanitize_term 13:45, 27 September 2012 Souri 版を流し込み。)
 
4行目: 4行目:
 
Sanitize Term all fields.
 
Sanitize Term all fields.
  
Relys on [[Function_Reference/sanitize_term_field|<tt>sanitize_term_field()</tt>]] to sanitize the term. The difference is that this function will sanitize <strong>all</strong> fields. The context is based on [[Function_Reference/sanitize_term_field|<tt>sanitize_term_field()</tt>]].
+
Relys on [[関数リファレンス/sanitize_term_field|<tt>sanitize_term_field()</tt>]] to sanitize the term. The difference is that this function will sanitize <strong>all</strong> fields. The context is based on [[関数リファレンス/sanitize_term_field|<tt>sanitize_term_field()</tt>]].
  
 
The <tt>$term</tt> is expected to be either an array or an object.
 
The <tt>$term</tt> is expected to be either an array or an object.
23行目: 23行目:
  
 
== Notes ==
 
== Notes ==
* Uses: [[Function_Reference/sanitize_term_field|<tt>sanitize_term_field()</tt>]] Used to sanitize all fields in a term
+
* Uses: [[関数リファレンス/sanitize_term_field|<tt>sanitize_term_field()</tt>]] Used to sanitize all fields in a term
  
 
== Change Log ==
 
== Change Log ==

2014年7月22日 (火) 00:32時点における版

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

Description

Sanitize Term all fields.

Relys on sanitize_term_field() to sanitize the term. The difference is that this function will sanitize all fields. The context is based on sanitize_term_field().

The $term is expected to be either an array or an object.

Usage

<?php sanitize_term( $term, $taxonomy, $context ) ?>

Parameters

$term
array|object) (必須) The term to check.
初期値: なし
$taxonomy
string) (必須) The taxonomy name to use.
初期値: なし
$context
string) (optional) Default is 'display'.
初期値: 'display'

Return Values

(array|object) 
Term with all fields sanitized

Examples

Notes

Change Log

Since: 2.3.0

Source File

sanitize_term() is located in wp-includes/taxonomy.php.

Related

タームタグ: is_term(), term_exists(), get_objects_in_term(), get_term(), get_term_by(), get_term_children(), get_term_link(), get_terms(), get_the_terms(), get_the_term_list(), has_term(), sanitize_term(), the_terms(), get_object_taxonomies() is_object_in_taxonomy() the_taxonomies() wp_get_object_terms(), wp_set_object_terms(), wp_get_post_terms(), wp_set_post_terms(), wp_delete_object_term_relationships()



関数リファレンステンプレートタグ目次もご覧ください。


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