How can I add a menu link for a specific combination of product category and filters? (in this case product attributes)

I found this that allows me to add links to a single filter, but not a combination of filters or category

add_filter('woocommerce_attribute_show_in_nav_menus', 'wc_reg_for_menus', 1, 2);
function wc_reg_for_menus( $register, $name = '' ) {
    if ( $name == 'pa_product-type' ) $register = true;
    return $register;

Is my best option to add it as a custom link?


Read more here: Add menu link for combination of product category and filter


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: