Hello @dawed78,
There isn’t a native option for that. I can think of including it later, though.
But please, try this code in your functions.php:
$default_btn_single_prod_position = get_option( Alg_WC_Wish_List_Settings_Buttons::OPTION_DEFAULT_BTN_SINGLE_POSITION, 'woocommerce_single_product_summary' );
$default_btn_single_prod_priority = get_option( Alg_WC_Wish_List_Settings_Buttons::OPTION_DEFAULT_BTN_SINGLE_PRIORITY, 31 );
remove_action( $default_btn_single_prod_position, array( Alg_WC_Wish_List_Toggle_Btn::get_class_name(), 'show_default_btn'), $default_btn_single_prod_priority );
add_action( $default_btn_single_prod_position, function(){
$product_id = get_the_ID();
$product = wc_get_product($product_id);
if($product->is_in_stock()){
Alg_WC_Wish_List_Toggle_Btn::show_default_btn();
}
},$default_btn_single_prod_priority);