wishlist_button_atts

This code is for creating a new attribute for the shortcode of wishlist button.

add_filter('wishlist_button_atts', 'wishlist_button_atts_20201908', 5);

function wishlist_button_atts_20201908($atts){


    $atts['custom_atts'] = 'CustomAttributes';

    return $atts;
}

For example:

[wishlist_button id="1234" show_menu="yes"]