get_term_to_edit

SummerySummery

Sanitizes Term for editing.

Syntax

get_term_to_edit( int|object $id, string $taxonomy )

DescriptionDescription

Return value is sanitize_term() and usage is for sanitizing the term for editing. Function is for contextual and simplicity.

ParametersParameters

$id

(int|object) (Required) Term ID or object.

$taxonomy

(string) (Required) Taxonomy name.

ReturnReturn

(string|int|null|WP_Error) Will return empty string if $term is not an object.

SourceSource

File: wp-includes/taxonomy.php


			

ChangelogChangelog

Changelog
Version Description
2.3.0 Introduced.
Scroll to Top