Change sign up fee in cart for subscription products WooCommerce
i am changing the price of products in cart like this
add_action('woocommerce_before_calculate_totals', 'set_custom_price',1000,1);
function set_custom_price($cart_obj) {
foreach ($cart_obj-get_cart() as $key = $value) {
if($value['alredy_have_number'] == true) {
$value['data']-set_price(0.90);
}
}
}
It works fine for recurring price but I wants to change signup fee for subscription products. what function or hook can I use for that ?
Topic woocommerce-offtopic subscription php Wordpress
Category Web