Woocommerce product price change

Try this code.

function return_custom_price($price, $product) {
    $price = $product->get_regular_price();
    if($price > 100){
        $updatedprice = 100;
    }else{
        $updatedprice = $price;
    }
    return $updatedprice;
}
add_filter('woocommerce_get_price', 'return_custom_price', 10, 2);