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