Glossary Term
sanitize_term_field()
sanitize_term_field() — Sanitizes 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.
Inputs: $field (string): Term field to sanitize. $value (string): Search for this term value. $term_id (int): Term ID. $taxonomy (string): Taxonomy name. $context (string): Context in which to sanitize the term field. Accepts ‘raw’, ‘edit’, ‘db’, ‘display’, ‘rss’, ‘attribute’, or ‘js’.
Returns mixed: Sanitized field.
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
