I added the code above, but nothing changes in the value of the wholesale product
//Simple product Wholesale Suite
add_filter('wholesalePrice', 'custom_prices', 99, 2 );
add_filter('wholesaleProduct', 'custom_prices', 99, 2 );
function wholesale_upd () {
global $wc_wholesale_prices;
$currentUserRole = $wc_wholesale_prices->wwp_wholesale_roles->getUserWholesaleRole();
global $product;
$productID = $product->get_id();
$wholesaleProduct = WWP_Wholesale_Prices::get_product_wholesale_price_on_shop_v3( $productID, $currentUserRole );
$wholesalePrice = $wholesaleProduct['wholesale_price'];
}
function custom_prices ($wholesalePrice) {
$int = floatval($wholesalePrice);
$kurs=get_option('kurs');
if ($kurs!='') {
return $int*$kurs + ($int*$kurs)/100*3;
} else return $int;
}