WordPress at Your Fingertips
function is not described

WC_Post_Data::edit_term() public WC 1.0

When editing a term, check for product attributes.

{} It's a method of the class: WC_Post_Data{}

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Post_Data::edit_term( $term_id, $tt_id, $taxonomy );
$term_id(int) (required)
Term ID.
$tt_id(int) (required)
Term taxonomy ID.
$taxonomy(string) (required)
Taxonomy slug.

Code of WC_Post_Data::edit_term() WC 5.6.0

public static function edit_term( $term_id, $tt_id, $taxonomy ) {
	if ( strpos( $taxonomy, 'pa_' ) === 0 ) {
		self::$editing_term = get_term_by( 'id', $term_id, $taxonomy );
	} else {
		self::$editing_term = null;
	}
}