WordPress at a glance
function is not described

Automattic\WooCommerce\Admin

CategoryLookup::before_edit() public WC 1.0

Store edits so we know when the parent ID changes.

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

No Hooks.

Return

null. Nothing.

Usage

$CategoryLookup = new CategoryLookup();
$CategoryLookup->before_edit( $category_id );
$category_id(int) (required)
Term ID being edited.

Code of CategoryLookup::before_edit() WC 5.3.0

<?php
public function before_edit( $category_id ) {
	$category                                  = get_term( $category_id, 'product_cat' );
	$this->edited_product_cats[ $category_id ] = $category->parent;
}