WC_Admin_Taxonomies::disable_checked_ontop()publicWC 1.0

Maintain term hierarchy when editing a product.

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

No Hooks.

Return

Array.

Usage

$WC_Admin_Taxonomies = new WC_Admin_Taxonomies();
$WC_Admin_Taxonomies->disable_checked_ontop( $args );
$args(array) (required)
Term checklist args.

Code of WC_Admin_Taxonomies::disable_checked_ontop() WC 6.7.0

public function disable_checked_ontop( $args ) {
	if ( ! empty( $args['taxonomy'] ) && 'product_cat' === $args['taxonomy'] ) {
		$args['checked_ontop'] = false;
	}
	return $args;
}