WC_Admin_Taxonomies::disable_checked_ontop()
Maintain term hierarchy when editing a product.
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.
WC_Admin_Taxonomies::disable_checked_ontop() WC Admin Taxonomies::disable checked ontop code WC 9.4.2
public function disable_checked_ontop( $args ) { if ( ! empty( $args['taxonomy'] ) && 'product_cat' === $args['taxonomy'] ) { $args['checked_ontop'] = false; } return $args; }