WC_Post_Data::edit_term( int $term_id, int $tt_id, string $taxonomy )

When editing a term, check for product attributes.


Description Description


Parameters Parameters

$term_id

(Required) Term ID.

$tt_id

(Required) Term taxonomy ID.

$taxonomy

(Required) Taxonomy slug.


Top ↑

Source Source

File: includes/class-wc-post-data.php

	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;
		}
	}

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.