tr

wpseek.com
A WordPress-centric search engine for devs and theme authors


  |     Browse all


sanitize_term_field [ WordPress Function ]

sanitize_term_field ( $field, $value, $term_id, $taxonomy, $context )
Parameters:
  • string $field Term field to sanitize
  • string $value Search for this term value
  • int $term_id Term ID
  • string $taxonomy Taxonomy Name
  • string $context Either edit, db, display, attribute, or js.
Uses:
  • $wpdb
Returns:
  • mixed sanitized field
Defined at:



Cleanse the field value in the term based on the context.

Passing a term field value through the function should be assumed to have cleansed the value for whatever context the term field is going to be used.

If no context or an unsupported context is given, then default filters will be applied.

There are enough filters for each context to support a custom filtering without creating your own filter function. Simply create a function that hooks into the filter you need.

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics