WooCommerce product categories widget show current children only

Put this snippet in your functions.php to display only children of current category in Woocommerce product categories widget.