# Developer zone

1. **Hook for before\_calculate\_totals function:**&#x20;

* yaye\_cart\_line\_total
* yaye\_cart\_line\_regular\_total

```
$cost_total         = apply_filters('yaye_cart_line_total', Utils::get_price_from_yaycurrency( $cost_total ), $cart_value);
				$cost_regular_total = apply_filters('yaye_cart_line_regular_total', Utils::get_price_from_yaycurrency( $cost_regular_total ), $cart_value);

				$cart_value['data']->set_price( $cost_total );
				$cart_value['data']->set_regular_price( $cost_regular_total );
```

2. **Hook for total\_price\_text and subtotal\_text:**

```
add_filter( 'yaye_total_price_text', function( $text ) {
	return esc_html__( 'Custom Total Price text......', 'yayextra' );
});
add_filter( 'yaye_subtotal_text', function( $text ) {
	return esc_html__( 'Custom Subtotal text......', 'yayextra' );
});
```
