Hi I need to use the product attributes as menu links and used the following in my neighboorhood child template functions.php:
/* add product type attributes to the menu selection */
add_filter('woocommerce_attribute_show_in_nav_menus', 'profil_product_attributes_reg_for_menus', 1, 2);
function profil_product_attributes_reg_for_menus( $register, $name = '' ) {
if ( $name == 'pa_produkttyp' ) $register = true;
return $register;
}
This code is only adding a specific attribute, but this might be a nice feature to have for auto generation of all attributes available.