get_term_to_edit ( $id, $taxonomy )
- (int|object) id Term ID or object.
- (string) taxonomy Taxonomy name.
- (string|int|null|WP_Error) Will return empty string if $term is not an object.
- Introduced in WordPress: 2.3.0
- Deprecated in WordPress: —
Sanitizes term for editing.Return value is sanitize_term() and usage is for sanitizing the term for
editing. Function is for contextual and simplicity.