Glossary Term
sanitize_term()
3 tags
1 category
sanitize_term() — Sanitizes all term fields. Relies 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.
Inputs: $term (array|object): The term to check. $taxonomy (string): The taxonomy name to use. $context (string): Optional. Context in which to sanitize the term. Accepts ‘raw’, ‘edit’, ‘db’, ‘display’, ‘rss’, ‘attribute’, or ‘js’. Default ‘display’.
Returns array|object: Term with all fields sanitized.
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…
